You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/ide/reference/proxy-firewall-troubleshoot.md
+43-52Lines changed: 43 additions & 52 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,22 @@ ai-usage: ai-assisted
15
15
When you use Visual Studio behind a corporate proxy or firewall, you might encounter connectivity issues that affect features requiring network access, such as NuGet package restore, extension installation, and AI-powered features. Proxy issues generally fall into two categories:
16
16
17
17
-**Configuration issues**: Problems with your proxy server setup, certificates, or network configuration. These issues are resolved by your IT administrator.
18
-
-**Settings required**: Visual Studio requires additional information about your network configuration. You can find more information about how to supply required settings to Visual Studio in this article. In the latest Insiders version of Visual Studio, you can configure the proxy within Visual Studio settings. You may enable the preview feature in **Tools** > **Options** > **All Settings** > **Preview Features** > **Proxy Configuration**.
18
+
19
+
::: moniker range="visualstudio"
20
+
21
+
-**Settings required**: Visual Studio requires additional information about your network configuration. You can configure proxy settings directly in the IDE. See [Configure proxy settings in Visual Studio](proxy-settings.md) for setup instructions.
22
+
23
+
> [!NOTE]
24
+
> The proxy configuration experience is not yet available in all Visual Studio 2026 installations. If you don't see this in your installation, you can install [Visual Studio Insiders](https://visualstudio.microsoft.com/insiders/) to try it. Or, view the [Visual Studio 2022 version of this page](/visualstudio/ide/reference/proxy-firewall-troubleshoot?view=vs-2022&preserve-view=true) for guidance.
25
+
26
+
::: moniker-end
27
+
28
+
::: moniker range="vs-2022"
29
+
30
+
-**Settings required**: Visual Studio requires additional information about your network configuration. You can find more information about how to supply required settings to Visual Studio in this article.
31
+
32
+
::: moniker-end
33
+
19
34
-**Product issues**: If you have determined that your issue is not a configuration issue or supplied settings do not address the issue you're seeing, then this could be a product issue. Follow the steps at [Collect diagnostic information](#product-issues-collect-diagnostic-information-for-support) before submitting a ticket.
20
35
21
36
This article helps you identify which category your issue falls into and provides solutions for common problems.
@@ -93,22 +108,19 @@ The following sections describe common proxy-related issues and their solutions.
93
108
94
109
**Solution**: Visual Studio supports signing into GitHub and Microsoft Entra accounts behind an authenticating proxy with basic authentication, but most versions of Visual Studio don't have support for Copilot behind an authenticating proxy with basic authentication.
95
110
96
-
On startup, a prompt appears to capture credentials, and this is used for Entra authentication. The credentials persist in the Windows **Credential Manager** under **Windows Credentials** as `VSCredentials_<proxyAddress>` as the internet or network address, then the username and password that the proxy requires.
97
-
98
-
<!--
99
-
::: moniker range="<=visualstudio"
111
+
::: moniker range="vs-2022"
100
112
101
-
**Solution**: Basic authentication for proxies isn't supported in Visual Studio 2022. Upgrade to a later version of Visual Studio and configure proxy settings as described in [Configure proxy settings in Visual Studio](#configure-proxy-settings-in-visual-studio).
113
+
On startup, a prompt appears to capture credentials. The credentials persist in the Windows **Credential Manager** under **Windows Credentials** as `VSCredentials_<proxyAddress>` as the internet or network address, then the username and password that the proxy requires.
102
114
103
115
::: moniker-end
104
116
117
+
::: moniker range="visualstudio"
105
118
106
-
::: moniker range=">visualstudio"
119
+
On startup, a prompt appears to capture credentials. The credentials persist in the Windows **Credential Manager** under **Windows Credentials** as `VSCredentials_<proxyAddress>` as the internet or network address, then the username and password that the proxy requires.
107
120
108
-
**Solution**: Basic authentication for proxies isn't supported. Configure proxy settings as described in [Configure proxy settings in Visual Studio](#configure-proxy-settings-in-visual-studio).
121
+
You can also configure proxy credentials directly in Visual Studio. See [Configure proxy settings in Visual Studio](proxy-settings.md).
109
122
110
123
::: moniker-end
111
-
-->
112
124
### Proxy authentication required (NTLM or Kerberos)
113
125
114
126
**Symptom**: Network-dependent features don't work when using a proxy server with NTLM or Kerberos authentication.
@@ -117,16 +129,17 @@ On startup, a prompt appears to capture credentials, and this is used for Entra
117
129
118
130
**Solution**: Configure Visual Studio to use default proxy credentials:
119
131
120
-
<!--
121
-
::: moniker range=">visualstudio"
132
+
::: moniker range="visualstudio"
122
133
123
-
1. Go to **Tools** > **Options** > **Environment** > **Network & Proxy**.
124
-
1. Enable **Use system default proxy credentials**.
134
+
1. Go to **Tools** > **Options** > **Proxy Settings**.
135
+
1. Select **Use the logged-in Windows account** to use your current Windows credentials.
136
+
1. Restart Visual Studio for the changes to take effect.
137
+
138
+
For more information, see [Configure proxy settings in Visual Studio](proxy-settings.md).
125
139
126
140
::: moniker-end
127
-
-->
128
141
129
-
::: moniker range=">=vs-2022"
142
+
::: moniker range="vs-2022"
130
143
131
144
Set the environment variable `VS_USE_DEFAULTPROXY` to `true`. For Copilot, also set `COPILOT_USE_DEFAULTPROXY` to `true`.
132
145
@@ -143,56 +156,28 @@ Set the environment variable `VS_USE_DEFAULTPROXY` to `true`. For Copilot, also
143
156
144
157
**Solution**: Configure the proxy server address explicitly:
145
158
146
-
<!--
147
-
::: moniker range=">visualstudio"
159
+
::: moniker range="visualstudio"
160
+
161
+
1. Go to **Tools** > **Options** > **Proxy Settings**.
162
+
1. Select **Use custom proxy settings**.
163
+
1. Enter the proxy server URL and port.
164
+
1. Restart Visual Studio for the changes to take effect.
148
165
149
-
1. Go to **Tools** > **Options** > **Environment** > **Network & Proxy**.
150
-
1. Enter your proxy server address.
166
+
For more information, see [Configure proxy settings in Visual Studio](proxy-settings.md).
151
167
152
168
::: moniker-end
153
-
-->
154
169
155
-
::: moniker range=">=vs-2022"
170
+
::: moniker range="vs-2022"
156
171
157
172
Set the `HTTPS_PROXY` and `HTTP_PROXY` environment variables to your proxy server address. Copilot needs these set up for Visual Studio.
158
173
159
174
::: moniker-end
160
175
161
-
<!--
162
-
## Configure proxy settings in Visual Studio
163
-
164
176
::: moniker range="visualstudio"
165
177
166
-
Visual Studio provides built-in proxy configuration options that work with most enterprise proxy setups. You can configure these settings through the Options dialog.
167
-
168
-
### Access proxy settings
169
-
170
-
To configure proxy settings in Visual Studio:
171
-
172
-
1. Go to **Tools** > **Options**.
173
-
1. Under **All Settings**, select **Proxy Configuration**.
174
-
1. Configure the appropriate settings for your environment.
175
-
176
-
### Use system default proxy credentials
177
-
178
-
For proxies that use Windows authentication (NTLM or Kerberos):
179
-
180
-
1. In the **Proxy Configuration** settings, enable **Use Windows proxy configuration**.
181
-
1. Restart Visual Studio for the changes to take effect.
182
-
183
-
This setting allows Visual Studio to use your Windows login credentials for proxy authentication.
184
-
185
-
### Specify a proxy server address
186
-
187
-
For proxies that require an explicit address:
188
-
189
-
1. In the **Proxy Configuration** settings, select **Use custom proxy settings**, and enter your proxy server address in the **Proxy server** field.
190
-
1. If your proxy uses a specific port, specify it in the **Proxy port** field.
191
-
1. If your proxy requires it, enable **Proxy authentication required**, and enter your credentials.
192
-
1. Restart Visual Studio for the changes to take effect.
178
+
For detailed proxy configuration steps, see [Configure proxy settings in Visual Studio](proxy-settings.md).
193
179
194
180
::: moniker-end
195
-
-->
196
181
197
182
## Troubleshoot SSL certificate issues
198
183
@@ -277,5 +262,11 @@ Collect the following information:
277
262
278
263
## Related content
279
264
265
+
::: moniker range="visualstudio"
266
+
267
+
-[Configure proxy settings in Visual Studio](proxy-settings.md)
268
+
269
+
::: moniker-end
270
+
280
271
-[Install and use Visual Studio behind a firewall or proxy server](../../install/install-and-use-visual-studio-behind-a-firewall-or-proxy-server.md)
281
272
-[Visual Studio connectivity troubleshooting](../../install/install-and-use-visual-studio-behind-a-firewall-or-proxy-server.md#troubleshoot-network-related-errors)
description: Set a custom proxy server, port, and authentication for Visual Studio to connect through enterprise networks.
4
+
ms.date: 03/12/2026
5
+
ms.topic: how-to
6
+
f1_keywords:
7
+
- VS.ToolsOptionsPages.Environment.ProxySettings
8
+
monikerRange: 'visualstudio'
9
+
author: ghogen
10
+
ms.author: ghogen
11
+
ms.subservice: general-ide
12
+
ms.custom: awp-ai
13
+
---
14
+
15
+
# Configure proxy settings in Visual Studio
16
+
17
+
By default, Visual Studio uses your Windows proxy configuration, but if your organization's network requires a different proxy configuration for Visual Studio, you can set one directly in the IDE through the **Proxy Settings** options page.
18
+
19
+
> [!NOTE]
20
+
> In this first release, the custom proxy settings apply to **GitHub Copilot experiences** and **sign-in flows for Entra ID and GitHub** within Visual Studio. A restart may be required for some features to pick up new proxy settings.
21
+
22
+
## Prerequisites
23
+
24
+
The proxy configuration experience is not yet available in all Visual Studio 2026 installations. If you don't see this in your installation, you can install [Visual Studio Insiders](https://visualstudio.microsoft.com/insiders/) to try it. Or, view the [Visual Studio 2022 proxy troubleshooting page](/visualstudio/ide/reference/proxy-firewall-troubleshoot?view=vs-2022&preserve-view=true) for guidance.
25
+
26
+
## Open the Proxy Configuration page
27
+
28
+
1. Select **Tools** > **Options** from the menu bar.
29
+
1. Select **Proxy Configuration** to open the proxy configuration page.
30
+
31
+
<!-- TODO: Screenshot of the Proxy Settings page
32
+

33
+
-->
34
+
35
+
## Default behavior
36
+
37
+
By default, Visual Studio uses your Windows proxy configuration. You don't need to change any settings unless you require a proxy configuration that differs from the default for your user account. If the Windows settings are set to No Proxy, Visual Studio respects this and sets no proxy.
38
+
39
+
## Configure proxy settings
40
+
41
+
To supply Visual Studio with proxy settings:
42
+
43
+
1. Open the **Proxy Configuration** page (**Tools** > **Options** > **Proxy Configuration**).
44
+
1. Select **Use custom proxy settings**.
45
+
1. Enter the **proxy server URL** and **port**.
46
+
1. Choose an authentication method:
47
+
-**Use the logged-in Windows account** — uses your current Windows credentials for integrated authentication (NTLM or Kerberos).
48
+
-**Use alternate credentials** — provide a **username** and **password** for the proxy.
49
+
1. Select **OK**.
50
+
1. Restart Visual Studio.
51
+
52
+
> [!TIP]
53
+
> If your proxy requires Basic authentication, choose **Use alternate credentials** and enter the credentials your proxy expects.
54
+
55
+
## Related content
56
+
57
+
-[Troubleshoot proxy and firewall issues in Visual Studio](proxy-firewall-troubleshoot.md)
58
+
-[Install and use Visual Studio behind a firewall or proxy server](../../install/install-and-use-visual-studio-behind-a-firewall-or-proxy-server.md)
Copy file name to clipboardExpand all lines: docs/ide/sign-in-access-multiple-accounts.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,3 +48,10 @@ Proxy credentials are stored in the Windows Credential Manager and are used as n
48
48
> If the proxy server starts or changes after opening Visual Studio, the **Account Settings** dialog will show a warning, but you'll need to restart Visual Studio to get the proxy credentials prompt.
49
49
50
50
::: moniker-end
51
+
52
+
::: moniker range="visualstudio"
53
+
54
+
> [!TIP]
55
+
> You can also configure proxy settings directly in Visual Studio through **Tools** > **Options** > **Proxy Settings**. For more information, see [Configure proxy settings in Visual Studio](reference/proxy-settings.md).
0 commit comments