null

Fix 'Windows Could Not Automatically Detect This Network's Proxy Settings'

When Windows 10/11 fails to detect proxy settings, you're stuck offline. This fix clears stale proxy configs and resets Winsock.

You're sitting in a coffee shop, laptop open, trying to hop on their Wi-Fi. Windows connects to the network fine, but then you get that dreaded balloon: “Windows could not automatically detect this network's proxy settings.” Click it, and you're stuck with a yellow triangle on your network icon, no internet, and a spinning wheel that goes nowhere. I've seen this on dozens of client machines—usually after they've used a VPN, tinkered with a browser extension, or moved between office and home networks.

Why Does This Happen?

Windows has a service called WinHTTP that handles proxy detection. It reads settings from the registry and sometimes from a file called wpad.dat on your network. When that service gets confused—say, a VPN left behind a bogus proxy address, or a misconfigured DHCP option on the router points to a dead proxy—Windows throws this error. It's not a hardware failure, and it's not your ISP's fault. It's just stale configuration garbage.

The real culprit? Most often it's leftover proxy settings from previous network connections. Windows remembers the last proxy server you used, and if that server isn't reachable, it panics. Also, malware and adware sometimes inject proxy entries to hijack your traffic. So this fix does two things: clears the junk and resets the networking stack.

The Fix: Clear Proxy, Reset Winsock

Skip the “run the troubleshooter” nonsense. It rarely works for this one. Here's what actually fixes it, step by step.

Step 1: Check and Disable Automatic Proxy Detection

Open Settings (Win + I), go to Network & InternetProxy. Under “Automatic proxy setup,” turn off Automatically detect settings. Then scroll down and make sure “Use a proxy server” under “Manual proxy setup” is also off. This alone fixes it about half the time.

Step 2: Clear WinHTTP Proxy

Open Command Prompt as administrator. Hit Win + X, choose “Command Prompt (Admin)” or “Terminal (Admin).” Then type:

netsh winhttp reset proxy

This clears any system-wide proxy that might be set. You'll see “Current WinHTTP proxy settings: Direct access (no proxy server).” Good.

Step 3: Reset Winsock and TCP/IP Stack

This is the heavy hammer that clears stuck sockets and broken network protocols. In the same admin command prompt, run these one by one:

netsh winsock reset
netsh int ip reset

Wait for each to finish, then restart your computer. Don't skip the reboot—some settings only apply after a clean start.

Step 4: Flush DNS (Just in Case)

While you're in there, type:

ipconfig /flushdns

Not the main fix, but it clears any cached DNS entries that might be pointing to a dead proxy. Costs two seconds.

Step 5: Check Your Browser's Proxy Settings

If you're still getting the error in Chrome or Edge, they might have their own proxy settings. In Chrome, go to SettingsSystemOpen your computer's proxy settings. That just opens the Windows dialog you already fixed. But if you have an extension like “Proxy Switcher” or “Hola,” disable or uninstall it. I've seen those leave behind a mess.

What If It Still Fails?

If you've done all that and the error persists, you're dealing with something else. Here's what to check in order.

Check DHCP Options on Your Router

Some routers hand out a proxy auto-config URL (option 252) that's dead. Log into your router (usually 192.168.1.1 or 192.168.0.1), find DHCP settings, and look for “Proxy” or “WPAD.” If it's set, clear it. I had a client last month whose ISP forced a WPAD URL that pointed to a retired server. That took a while to track down.

Scan for Malware

Adware loves to set proxy settings. Run a full scan with Malwarebytes (free version works). If it finds something, remove it and repeat Steps 1–4.

Check Your VPN or Security Software

If you use a VPN, its virtual adapter might be hijacking your network. Disconnect the VPN, then try connecting again. Some antivirus suites also have a “web shield” that acts as a local proxy. Temporarily disable that to test.

Last Resort: System Restore

If the error started recently after a driver update or software install, roll back to a restore point. It's not cheating—it's smart. I've done it more than once when nothing else works.

That's the whole playbook. In most cases, Steps 1–3 fix it. If not, you're dealing with something external. Either way, you won't be staring at that yellow triangle for long.

Related Errors in Network & Connectivity
0XC0368006 Fix STATUS_IPSEC_DOSP_MAX_PER_IP_RATELIMIT_QUEUES (0xC0368006) fast 0XC00000CA 0XC00000CA: Network Access Denied Fix That Works 0x00000bc4 Printer Offline - Quick Fix Stops Working on Windows 10/11 0XC0000140 Fix 0XC0000140 STATUS_INVALID_CONNECTION in Windows

Was this solution helpful?

EP
Erropedia Team
Tech Support Editors
The Erropedia editorial team researches and documents real-world tech errors from across Windows, Linux, macOS, networking, databases, cloud platforms, and more. Every solution is reviewed for accuracy and updated as software and systems evolve.