none
Where to set Proxy parameters for Visual Studio 2015 to get connected to Internet

    Question

  • Hello,

    My company requires me to use a Proxy for all Internet connections.

    How to set Proxy parameters so that Visual Studio 2015 uses the Proxy for all tool requiring Internet accesses ?

    Regards

    Eric

    Tuesday, February 21, 2017 2:37 PM

Answers

  • Hi Rico38,

    Welcome to the MSDN forum.

    Refer to your description, please check this: Proxy Authorization Required and have a try with the following steps:

    • Restart Visual Studio. A proxy authentication dialog box should appear. Enter your credentials in the dialog.
    • If the above step does not solve the problem, this may be because your proxy server does not prompt for credentials for http://go.microsoft.com addresses but does so for *.visualStudio.com addresses. For these servers, you need to whitelist the following list to unblock all sign-in scenarios in Visual Studio:
      • *.windows.net
      • *.microsoftonline.com
      • *.visualstudio.com
      • *.microsoft.com
      • *.live.com
    • You can otherwise remove the http://go.microsoft.com address from the whitelist so that the proxy authentication dialog shows up for both the http://go.microsoft.com address and the server endpoints when Visual Studio is restarted.
    • OR
    • If you want to use your default credentials with your proxy, you can do the following:
      1. Find devenv.exe.config (the devenv.exe configuration file) in: %ProgramFiles%\Microsoft Visual Studio 14.0\Common7\IDE (or %ProgramFiles(x86)%\Microsoft Visual Studio 14.0\Common7\IDE).
      2. In the configuration file, find the <system.net> block, and add this code:
    <defaultProxy enabled="true" useDefaultCredentials="true">  
        <proxy bypassonlocal="True" proxyaddress=" HYPERLINK "http://<yourproxy:port#" http://<yourproxy:port#>"/>  
    </defaultProxy>  

    If the above methods not work, please have a look at the following similar issue:

    Accessing Nuget Official Package Source behind company proxy

    Visual Studio 2015 - Can't sign in, Use NuGet, etc. behind corporate proxy

    Best regards,

    Sara

    Wednesday, February 22, 2017 5:31 AM
    Moderator