Proxy 101
March 2, 2026
6 min

How to set up a proxy in Windows 11 and 10 (2026)

Emma Caldwell
Emma Caldwell
Proxy & Privacy Enthusiast
How to set up a proxy in Windows 11 and 10 (2026)
概要
Master Windows 11 proxy settings with our essential guide. Get step-by-step setup and troubleshooting tips.

Key takeaways:

  • The proxy steps are identical on Windows 11 and Windows 10: open Settings > Network & internet > Proxy and use manual setup or an automatic script.
  • Windows has three built-in methods: automatic detection, an automatic configuration script (PAC file), and manual host and port entry.
  • The Windows proxy field accepts HTTP and HTTPS proxies. For a SOCKS5 proxy, configure it in the app that supports it rather than the system panel.
  • You can also set, check, or clear a proxy from the command line with netsh or PowerShell, which is useful for scripts and headless machines.

Windows routes traffic for most apps, including Chrome and Edge, through one system proxy setting. Set it once and those apps follow it. This guide covers every method, from the Settings app to the command line, plus how to verify and fix a proxy when something goes wrong. The steps are the same on Windows 11 and Windows 10 unless noted.

Windows offers three setup methods; manual entry is the most common.

How to set up a proxy in Windows 11 and 10 (manual)

Manual setup is the most common method when you have a host and port from a provider.

  1. Press Windows + I to open Settings.
  2. Go to Network & internet > Proxy.
  3. Under Manual proxy setup, next to Use a proxy server, select Set up.
  4. Turn on Use a proxy server.
  5. In Proxy IP address, enter the host or IP. In Port, enter the port number. Keep your proxy server address from your provider handy.
  6. Optional: add sites that should skip the proxy in the exceptions box, separated by semicolons (for example *.example.com; *.internal.net).
  7. Select Save, then restart your browser.

On Windows 10 the path is identical: Settings > Network & Internet > Proxy. You can also open the classic panel by running inetcpl.cpl, then Connections > LAN settings.

The same four steps work on Windows 11 and Windows 10.

How to set up a proxy with an automatic script (PAC file)

A proxy auto-config (PAC) file is a small script that tells Windows which proxy to use for each site. Organizations often distribute one so every machine uses the same rules.

  1. Open Settings > Network & internet > Proxy.
  2. Under Automatic proxy setup, next to Use setup script, select Set up.
  3. Turn on Use setup script and paste the PAC file URL, for example http://proxy.example.com/proxy.pac.
  4. Select Save.

A PAC file can live at a public or internal URL, or at a local path such as file:///C:/proxy/proxy.pac. Windows stores the configured script address in the registry under HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings as AutoConfigURL, which is where to look if you need to confirm or update the PAC file location.

How to enter a proxy username and password

Many paid proxies require authentication. When you first send traffic through the proxy, Windows or the app prompts for a username and password. Enter the credentials from your provider dashboard and choose to save them if you want Windows to remember them.

For command-line tools that read environment variables, you can include credentials in the proxy URL:

set HTTP_PROXY=http://username:password@host:port

set HTTPS_PROXY=http://username:password@host:port

 

Store credentials carefully and avoid committing them to scripts or version control.

How to set up a SOCKS5 proxy on Windows

The Windows Settings proxy field is built for HTTP and HTTPS proxies, so a SOCKS5 address does not belong there. To use SOCKS5, configure it in the application that supports it:

  • Browsers and tools that accept a SOCKS5 host, port, and credentials directly in their own network settings.
  • A proxy management extension for per-browser control, such as the Chrome proxy extension.
  • A local SOCKS5 client that forwards traffic for apps that read the system proxy.

Decide between SOCKS5 and HTTP based on the traffic you route. Our guide on SOCKS5 and HTTP proxies explains when each one fits.

The system panel takes HTTP and HTTPS; set SOCKS5 in the app itself.

How to set a proxy from the command line (CMD and PowerShell)

Command-line setup is handy for servers, scripts, and machines with no desktop.

Set the system WinHTTP proxy, used by Windows services and many background tools:

netsh winhttp set proxy proxy-server="host:port" bypass-list="*.example.com"

 

Set the per-user proxy that matches the Settings app, using PowerShell:

$reg = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings'

Set-ItemProperty -Path $reg -Name ProxyServer -Value 'host:port'

Set-ItemProperty -Path $reg -Name ProxyEnable -Value 1

 

For command-line tools only, set environment variables for the current session:

set HTTP_PROXY=http://host:port

set HTTPS_PROXY=http://host:port

 

How to check, change, or remove a proxy in Windows

Confirm the active system proxy with this read-only command:

netsh winhttp show proxy

 

When nothing is set, Windows returns "Direct access (no proxy server)." To change a proxy, edit the host and port in Settings > Network & internet > Proxy and save. To remove it, turn off Use a proxy server (or Use setup script) and select Save, or reset the WinHTTP proxy:

netsh winhttp reset proxy

 

If you only need to clear the proxy for browsing, see our walkthrough on how to remove a proxy in Chrome, which uses the same Windows panel.

Which proxy to use with Windows

The proxy you set is only as good as the network behind it. A free public proxy often drops connections and raises privacy concerns, so a paid service is the more stable choice for everyday use. Match the type to the task:

  • [Residential proxies](https://www.proxy-cheap.com/services/residential-proxies) for high-trust targets and location-accurate research.
  • [Datacenter proxies](https://www.proxy-cheap.com/services/datacenter-proxies) for high-throughput work on public content.
  • [ISP proxies](https://www.proxy-cheap.com/services/isp-proxies) for long, stable sessions that need residential trust with datacenter speed.
  • [Static residential proxies](https://www.proxy-cheap.com/services/static-residential-proxies) when you want a consistent IP for account-bound tasks.

Proxy-Cheap offers these on pay-as-you-go and per-IP plans with no monthly commitment. For a full comparison, see our roundup of the best proxy providers.

Common Windows proxy errors and how to fix them

  • ERR_PROXY_CONNECTION_FAILED. Windows cannot reach the proxy. Recheck the host and port, confirm the proxy is online, or turn the proxy off to test a direct connection.
  • Proxy authentication required (407). The proxy needs valid credentials. Re-enter the username and password from your provider.
  • "Windows could not automatically detect this network's proxy settings." Usually a general network issue. Turn off Automatically detect settings, restart the adapter, and retry.
  • PAC script not applied. Confirm the PAC file URL is reachable in a browser and that the address in AutoConfigURL is correct.

常见问题解答

Yes. Both versions use Settings > Network & internet > Proxy with the same manual, automatic, and script options. The menus look slightly different, but the fields and behavior match.

Open Settings > Network & internet > Proxy, or run inetcpl.cpl and open Connections > LAN settings. Both lead to the same per-user proxy configuration that most apps follow.

The Windows Settings proxy field only accepts HTTP and HTTPS proxies, so a SOCKS5 address will not connect there. Set SOCKS5 inside an app that supports it, such as a browser, an extension, or a dedicated client.

A PAC file lives at the URL or local path you provide, not inside Windows itself. Windows saves the address you entered in the registry under Internet Settings as AutoConfigURL, which you can check to confirm the current PAC file location.

Yes. On the desktop, Chrome and Edge follow the system proxy set in Windows. Firefox is the main exception, since it keeps its own proxy settings that you can configure separately.

The proxy requires authentication and the saved credentials are missing or incorrect. Re-enter the username and password from your provider, and choose to save them so Windows stops prompting.

Yes. Run netsh winhttp show proxy in Command Prompt to see the system proxy, or load a "what is my IP" page to confirm the IP and location match the proxy. Both take a few seconds.

Free public proxies carry privacy and reliability risks, since you rarely know who runs them. For accounts, payments, or work data, a paid provider with 256-bit SSL and clear policies is the safer option.

Windows applies one system proxy to apps that follow it, but you can override that per app. Browsers like Firefox, automation tools, and SOCKS5 clients let you set their own proxy independently of the system setting.