8

I would like to download python packages via Visual studio. I would like to configure the proxy for downloading these packages.

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000001E616804630>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/pydotplus/

I tried the following steps, which were not successful:

  1. Adding global proxy using netsh(https://superuser.com/a/375525/584920)
  2. Modifying the devnet.exe.config (https://stackoverflow.com/a/41936608/2614539)

Note: I configured proxy for GitHub, which works like a charm inside Visual Studio.

2
  • 1
    how did you manage to get the proxy for github in VS? I have also tried the steps you did above with no luck.. Commented Sep 25, 2020 at 14:38
  • @nat for that you have to set the username/password/domain values for Git. This is the solution I used: stackoverflow.com/a/68289431/7389293 Commented Sep 24, 2021 at 15:30

4 Answers 4

8

If you are using Visual Studio in a Microsoft Windows environment. Your proxy settings should be configured via Internet Explorer either in Control Panel via Visual Studio in the following manner...

  • Open Visual Studio, then click on Tools-> Options...

  • In the Environment section scroll to and click on Web Browser, then click on Internet Explorer Options...

  • On your Internet Explorer Options click on the Connections tab, then click on the LAN Settings... button and place a check mark on the check box labeled "Use a proxy server for your LAN (These settings will not apply to dial-up or VPN connections)". Then click on the Advanced tab. This is where you will place your proxy server settings.

If you are using a Mac, and are either attempting to install Visual Studio or use it's services such as Azure, etc... You may want to take a look at the following link via Microsoft Docs, which explains that endpoints need to be opened flor proxy/and firewall settings.

Sign up to request clarification or add additional context in comments.

2 Comments

I use windows environment, The default proxy is already set for IE, which didn't work.
@Dineshkumar have it been solved?
8

I do also struggled a lot for signing in & getting license updated. What I found is that in environment option select system web browser instead of embedded browser solved my problem.

enter image description here

I could log in external browser & was able to sign in eventually update the license.

Comments

5

Tools->Options->Web Browser->Internet Explorer Options->Connections-> LAN settings-> Proxy server -> Advance add your proxy IP and port here.

1 Comment

What if I want to save proxy user and password?
0

This is for users who get to this page while trying to understand, how to get extensions working while using VSCODE in an isolated environment (no internet access) . VSCode by default will use the proxy settings specified in inetcpl.cpl.

MS has provided a list of URL's which need to be whitelisted on the proxy. The link is https://code.visualstudio.com/docs/setup/network. However, they have missed out on one URL which you will need to get to the extensions. https://marketplace.visualstudio.com/. Added this to the list of allowed URL's on the proxy and that did the trick.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.