Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to configure proxy in Visual Studio 2019?

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.

like image 952
Dineshkumar Avatar asked Jan 26 '23 07:01

Dineshkumar


2 Answers

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.

like image 52
Ause Sims Avatar answered Jan 28 '23 21:01

Ause Sims


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

like image 22
anwesha25 Avatar answered Jan 28 '23 20:01

anwesha25