On this pageWhat Windows means by proxy settings
"Windows could not automatically detect this network's proxy settings" is what the network troubleshooter says when the connection fails and it cannot find a proxy to blame or to use. The proxy is often innocent. A setting left behind by a VPN client, a debugging tool or malware is one cause; a broken DNS setup, a damaged Winsock catalog or a misbehaving driver are others. Work from the least invasive fix to the most invasive, and test after each step.
If the machine is a remote Windows server, read the last section before running anything: some of these fixes drop your Remote Desktop session.
What Windows means by proxy settings
Windows can learn about a proxy in three ways, all listed under Settings > Network & internet > Proxy:
| Setting | What it does | Normal at home |
|---|---|---|
| Automatically detect settings | Looks for a proxy on the network (WPAD) | On or off, both fine |
| Use setup script | Downloads a PAC file that decides per URL | Off |
| Manual proxy setup | Sends traffic to a fixed proxy address and port | Off |
There is also a second, separate proxy configuration. Browsers and most apps use the per-user settings above, while Windows Update and many system services use WinHTTP, which has its own setting. That is how one machine can browse fine while updates fail, or the other way around.
First, find out what is actually broken
Open PowerShell and run three quick checks:
Resolve-DnsName www.microsoft.com
Test-NetConnection www.microsoft.com -Port 443
ipconfig /all
| Result | Likely problem |
|---|---|
Resolve-DnsName fails |
DNS: check the DNS servers in ipconfig /all |
DNS works, TcpTestSucceeded : False |
Network, firewall or routing, not the proxy |
| Both work, but browsers fail | Proxy settings or software that intercepts traffic |
No IPv4 address, or one starting with 169.254 |
The adapter got no address from the network |
Step 1: clear the proxy settings you do not use
In Settings > Network & internet > Proxy, turn off Use setup script and Manual proxy setup unless your organization told you to use them. Leave Automatically detect settings on.
The same values live in the registry, which is quicker to check on several machines:
Get-ItemProperty 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings' |
Select-Object ProxyEnable, ProxyServer, AutoConfigURL
ProxyEnable should be 0 and the other two empty on a machine that uses no proxy. If the Settings page shows a notice that some settings are managed by your organization, a Group Policy or management tool applies them, and changes you make by hand will come back.
Step 2: reset the WinHTTP proxy
From PowerShell run as administrator:
netsh winhttp show proxy
netsh winhttp reset proxy
The healthy answer from the first command is "Direct access (no proxy server)." The reset only touches the WinHTTP setting, so it is safe to run on any machine.
Step 3: look for software that sets a proxy
Several kinds of programs set a system proxy on purpose and sometimes fail to remove it: VPN and "privacy" clients, parental-control tools, ad blockers that filter at the network level, and debugging proxies such as Fiddler, which points Windows at 127.0.0.1:8888 while it runs. If one of these crashed or was uninstalled badly, the proxy address stays and points at nothing.
Malware does the same thing on purpose, to read your traffic. If you cannot explain a proxy address, scan the system with Microsoft Defender:
Update-MpSignature
Start-MpScan -ScanType FullScan
Step 4: renew the address and flush DNS
ipconfig /flushdns
ipconfig /release
ipconfig /renew
/flushdns clears cached answers, which helps after DNS changes (more in flush the DNS cache). /release gives up the DHCP address, and on a remote machine that ends your connection before /renew can run, so only use those two at the keyboard or from a console.
If DNS was the failing check, set the adapter's DNS servers back to automatic, or to resolvers you trust, under the adapter's DNS server assignment setting, then test again with Resolve-DnsName.
Step 5: reset Winsock and TCP/IP
These two commands repair the networking stack itself. Run them as administrator, then restart:
netsh winsock reset
netsh int ip reset
Restart-Computer
netsh winsock reset removes leftover network hooks that old security or VPN software installed. netsh int ip reset returns TCP/IP settings to their defaults, which can also remove a manually configured address. Before running it on a machine with a static IP, save the output of ipconfig /all so you can enter the settings again.
Step 6: check the adapter and its driver
In Device Manager, open Network adapters. A warning icon, or an adapter that disappears and returns, points at the driver. Install the current driver from the PC or adapter maker, or use Roll Back Driver if the problem started after an update. Restarting the adapter is often enough:
Get-NetAdapter
Restart-NetAdapter -Name "Ethernet"
Virtual machines use virtual adapters whose drivers come from the hypervisor's guest tools, so on a cloud server leave the driver alone unless the provider says otherwise.
Step 7: network reset, the last resort
Settings > Network & internet > Advanced network settings > Network reset removes and reinstalls every network adapter, returns networking components to their defaults and removes VPN clients and virtual switches. Windows restarts a few minutes later. You will need Wi-Fi passwords and VPN profiles again afterwards.
On a Windows server you reach over RDP
The same error appears on servers, often after someone installs a proxy or VPN tool for testing. The rule is simple: anything that touches the adapter or its address can cut you off.
| Safe over Remote Desktop | Needs console access |
|---|---|
| Proxy toggles in Settings and the registry check | ipconfig /release and /renew |
netsh winhttp reset proxy |
netsh int ip reset |
ipconfig /flushdns |
Disabling or restarting the adapter |
| Defender quick and full scans | Network reset |
Before anything in the right-hand column, open the provider's out-of-band console. On CloudSat, console access can be requested from the server page, as described in Regain access with the recovery tools, and it keeps working while the network is down.
FAQ
Should I turn off "Automatically detect settings"?
At home it rarely matters: with no WPAD server on the network, the lookup finds nothing and Windows connects directly. In offices that publish a proxy through WPAD, leave it on, or browsing may stop working.
Why does the proxy setting come back after every restart?
Something applies it at startup: a Group Policy, a management agent, a startup app such as a VPN client, or malware. Check Settings > Apps > Startup, remove tools you no longer use, and run a full scan.
Browsing works, but Windows Update fails. Is it the proxy?
Possibly. Windows Update uses the WinHTTP setting, not the browser's, so run netsh winhttp show proxy and reset it if it points at a proxy you do not use.
Run it on CloudSat. Cloud VPS on AMD EPYC and NVMe from $1.98/mo in 13 regions, delivered in under 5 minutes and paid in crypto. See plans or deploy a server.




