Windows could not automatically detect this network's proxy settings: how to fix it

In most cases, the message "Windows could not automatically detect this network's proxy settings" goes away after you turn off proxy auto-detection, remove a leftover setup script or manual proxy, and reset WinHTTP: 4–5 steps in the device's network settings. Windows reports it when the network troubleshooter asks the network for a proxy auto-config (PAC) file through WPAD and gets no answer.
The instructions below cover five places where Windows stores or resets proxy configuration: Settings in Windows 11, Settings in Windows 10, Internet Options in Control Panel, Command Prompt with netsh, and Network reset.
What the message means: WPAD and PAC on Windows
The message is a result of Web Proxy Auto-Discovery (WPAD), the protocol behind the Automatically detect settings switch. With the switch on, Windows first asks the DHCP server for a PAC file URL (option 252). If DHCP returns nothing, it looks for a host named wpad in DNS, moving up the domain one level at a time: wpad.branch.example.com, then wpad.example.com. The file it requests is always called wpad.dat. Inside is JavaScript with one required function, FindProxyForURL(url, host), which returns DIRECT or PROXY host:port for every request.
Home routers rarely publish either record, so the lookup fails and the network troubleshooter lists the failure as a finding. If websites open normally, the finding changes nothing.
It matters when the PC has no internet at the same time. In that case a manual proxy or a setup script is usually still configured and points to a server that no longer answers. The usual leftovers come from a VPN client, a proxy extension or a work configuration on a laptop that moved to a home network.
On Active Directory networks, Windows DNS Server blocks the name wpad by default through its global query block list, so the DNS method fails there until an administrator removes the name from that list.
WPAD also has no final standard. According to Microsoft's WinHTTP documentation, the specification never progressed beyond an Internet-Draft and expired in May 2001.
How to fix it in Windows 11 Settings
In Windows 11, all three proxy switches sit on one page, Settings > Network & internet > Proxy, and two of them open separate dialogs.
- Open the Proxy page. Press Windows + I to open Settings, select Network & internet in the left pane, then Proxy. You can also press Windows + R and run ms-settings:network-proxy. The page opens with two sections: Automatic proxy setup and Manual proxy setup.

- Turn off Automatically detect settings. Under Automatic proxy setup, set Automatically detect settings to Off. Windows stops searching the network for a PAC file. On a company network that hands out its proxy through WPAD, leave the switch on and ask IT for the correct configuration.
- Remove the setup script. Next to Use setup script, select Set up. In the Edit setup script dialog, turn off Use setup script, delete the address in the Script address field and select Save. A stale PAC address left here sends every request to a file that may no longer exist.

- Turn off the manual proxy. Under Manual proxy setup, next to Use a proxy server, select Set up. In the Edit proxy server dialog, turn off Use a proxy server and select Save. The values in Proxy IP address and Port stay saved after that, so clear both fields before saving if you want the proxy removed rather than paused.

- Run the troubleshooter again. Open Settings > System > Troubleshoot > Other troubleshooters and select Run next to the network and internet troubleshooter. Then reload a page in your browser: if it opens, the proxy configuration no longer blocks traffic.

How to fix it in Windows 10 Settings
When Windows 10 could not automatically detect this network's proxy settings, the fix starts at Settings > Network & Internet > Proxy, where the same three options appear as switches directly on the page, with no separate dialogs.
- Open the Proxy page. Select Start, then the gear icon to open Settings. Select Network & Internet, then Proxy in the left menu.

- Turn off automatic detection. Under Automatic proxy setup, set Automatically detect settings to Off. Windows 10 has this switch on by default, so most home PCs send WPAD lookups even though nobody enabled them.
- Clear the setup script. Set Use setup script to Off, delete the text in the Script address field and click the Save button under that field.
- Turn off the manual proxy. Under Manual proxy setup, set Use a proxy server to Off and click Save. If the Address and Port fields hold a server you don't recognize, delete both values first: proxies in this section are set by forgotten software and by adware alike.
- Run the troubleshooter. Select Start > Settings > Update & Security > Troubleshoot, choose the network troubleshooter and select Run the troubleshooter. If pages load afterwards, the fix is complete.

How to fix it in Internet Options (Control Panel)
The Internet Properties dialog in Control Panel keeps the same proxy settings in their older form and opens in both Windows 11 and Windows 10 with one command.
- Open Internet Properties. Press Windows + R, type inetcpl.cpl and press Enter. The Internet Properties window opens.

- Open LAN settings. Select the Connections tab, then the LAN settings button near the bottom. The Local Area Network (LAN) Settings dialog opens with three check boxes.

- Clear all three check boxes. Clear Automatically detect settings, Use automatic configuration script and Use a proxy server for your LAN. Clearing only the first box is not enough: when detection and a script are both enabled, Windows uses the script location after WPAD detection fails.
- Save and close. Select OK in the LAN dialog, then OK in Internet Properties. If OK does not respond, open services.msc and check that WinHTTP Web Proxy Auto-Discovery Service is not set to Disabled. Since Windows 10 version 1709, this dialog cannot be saved while the service is disabled.
How to fix it with Command Prompt (netsh and ipconfig)
Command Prompt reaches the WinHTTP proxy, a machine-wide setting that the Settings page does not display; Windows Update tries it before the user proxy, so a stale WinHTTP entry can break updates after everything in Settings is off.
- Open Command Prompt as administrator. Select Search on the taskbar and type command prompt. Next to the Command Prompt result, select Run as administrator, then Yes.

- Check the WinHTTP proxy. Run netsh winhttp show proxy. The line "Direct access (no proxy server)." means WinHTTP is clean, while a server name means an old proxy still applies to system services. Microsoft now marks this command as deprecated in favor of netsh winhttp show advproxy, which also covers the AutoDetect and AutoconfigUrl values.
- Reset the WinHTTP proxy. Run netsh winhttp reset proxy. WinHTTP switches to DIRECT and the configured server is removed.
- Reset the network stack. Run the five commands below in this order, then restart the PC. The last one also clears cached DNS answers for the wpad host name.
netsh winsock reset
netsh int ip reset
ipconfig /release
ipconfig /renew
ipconfig /flushdns
To see the user-level values that Settings writes, run reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings". ProxyEnable set to 0x0 means the manual proxy is off, ProxyServer holds the last address, and an AutoConfigURL entry, if one is listed, is the setup script that Windows still has on record.
If a company proxy must reach system services as well, run netsh winhttp import proxy source=ie. It copies only a fixed proxy server from the user settings; automatic detection and setup scripts are not imported.
How to fix it with Network reset
Network reset is the last fix to try in Windows 11 and Windows 10: it removes every network adapter, reinstalls the adapters after a restart and returns other networking components to their default settings.
- Open Network reset. In Windows 11, open Settings > Network & internet > Advanced network settings > Network reset. In Windows 10, open Settings > Network & Internet > Status > Network reset.

- Confirm the reset. Select Reset now, then Yes. Save open files first, because Windows restarts the PC to finish the reset.
- Reconnect and reinstall. After the restart, connect to your Wi-Fi network again and reinstall VPN clients or Hyper-V virtual switches that the reset removed. Windows may also set known networks to the Public profile, so switch to Private if you share files on that network.
Microsoft's description of Network reset does not mention proxy settings, so check the Proxy page afterwards rather than assuming the reset cleared it.
How to point Windows to a PAC file instead of WPAD
If your network needs a proxy, a fixed PAC address in Settings > Network & internet > Proxy > Use setup script replaces the discovery step that fails.
Host the file on a web server. WinHTTP accepts only http: and https: PAC URLs, so a file:///C:/... path that works in one browser can fail for Windows services. Serve it with the MIME type application/x-ns-proxy-autoconfig. A minimal file that keeps internal hosts direct and sends everything else through one proxy looks like this:
function FindProxyForURL(url, host) {
if (isPlainHostName(host) || dnsDomainIs(host, ".corp.example")) {
return "DIRECT";
}
return "PROXY 203.0.113.10:8080; DIRECT";
}
The trailing DIRECT lets traffic leave without the proxy if 203.0.113.10 stops answering. Remove it when every request must pass through the proxy, for example when a site has to see a specific country.
For price monitoring, ad verification or checking how a site renders from another country, write a specific proxy into the PAC file instead of waiting for discovery. Proxys.io issues each proxy with HTTP(S) and SOCKS5 ports and lets you turn on authorization by IP address in the personal account.
That matters on Windows: the Edit proxy server dialog has no username or password fields, so login-based proxies trigger a proxy authentication prompt (HTTP 407) in the browser.
How to turn off WPAD for all apps (administrators)
Windows 10 version 1809 and later let administrators switch off WPAD for every app that uses WinHTTP, not only for the user who flips the Settings switch.
Create a DWORD value named DisableWpad with the data 1 under HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\WinHttp. It stops WPAD for all proxy detection calls made through the WinHTTP API. Microsoft's guide to disabling HTTP proxy features states the trade-off plainly: "After you disable WPAD, you must manually configure all proxies." The value does not block DNS, so nslookup wpad still resolves the name, and Microsoft advises turning off the Settings switch too, because browsers and third-party apps read it.
Do not disable the WinHTTP Web Proxy Auto-Discovery Service to get rid of the message. Since Windows 10 version 1709, the service also handles manual proxy configuration, and some VPN clients stop working without it. CIS benchmarks list disabling it as a Level 2 hardening item, which fits managed fleets that receive their proxy through Group Policy rather than home PCs.
On domain-joined PCs, two Group Policy settings decide whether users can change any of this: Prevent changing proxy settings under User Configuration\Administrative Templates\Windows Components\Internet Explorer, and Make proxy settings per-machine (rather than per-user) under the same path in Computer Configuration. When the first is on, the switches in Settings are greyed out and the fix belongs to IT.
There is a security reason to keep discovery off outside the office. Any device on a shared network that answers the DHCP or wpad lookup can hand the PC a PAC file that routes its traffic through a server the attacker controls.
FAQ
Is the message a sign of a virus?
No, the message itself only says that WPAD found no PAC file. An unfamiliar address in the proxy settings is the real warning sign, since Microsoft notes that malicious software can change proxy settings; run a full Microsoft Defender Antivirus scan if you find one.
Why does it appear on home Wi-Fi but not at the office?
Office networks often publish a wpad record in DHCP or DNS, so detection succeeds there. A home router usually publishes neither, and the same laptop fails the lookup.
Should Automatically detect settings stay on?
Keep it on only when your administrator distributes the proxy through WPAD. On home and public Wi-Fi it usually finds nothing to use.
Can a VPN cause this error?
Yes, because each VPN connection in Windows keeps its own proxy settings, separate from Wi-Fi and Ethernet. Check Proxy settings for this VPN connection in the VPN entry's Advanced options.
Why does the proxy come back after a restart?
Software that starts with Windows, such as a VPN client or a proxy manager, rewrites the setting at sign-in, and on a work PC Group Policy can do the same. Remove or reconfigure that software, or ask IT before changing a managed device.
Does a stale Windows proxy affect WSL?
It can on Windows 11 22H2 and later, where WSL 2 copies the Windows proxy into Linux by default (autoProxy=true in .wslconfig). Restart WSL with wsl --shutdown after you change the Windows settings.
Can I use a proxy in the browser only?
Yes. The ProxyControl extension applies a proxy inside Chrome and leaves the Windows proxy settings untouched, so Windows services keep a direct connection.
How do I check that a manual proxy works?
Run the address through the Proxys.io proxy checker before saving it in Windows, then open a page that shows your public IP.
Which proxy type should I set for work tasks?
Datacenter proxies suit speed-sensitive jobs such as SEO checks and price monitoring, while residential proxies with a rotation timer of 2 to 60 minutes suit sites that score IP reputation. For platforms built around phone traffic, Proxys.io also offers mobile proxies.
How do I remove a proxy on macOS, Chrome or iPhone?
Each keeps proxy settings in its own menu, and the steps are collected in the guide on how to get rid of a proxy.