sodcalculator

10 Tech How-To

Windows Not Auto-Detecting Proxy Settings? Solved

Guide 10-17426 · Updated · Step by step

If Windows is not automatically detecting your network’s proxy settings, the fix usually involves re-enabling the “Automatically detect settings” checkbox in the proxy settings, resetting the WinHTTP proxy, or clearing the cached proxy configuration. This article walks through the most common causes and step-by-step solutions for Windows 10 and Windows 11.

Why Windows Stops Auto-Detecting Proxy Settings

Windows uses a system service called WinHTTP (Windows HTTP Services) to handle proxy detection. When you select “Automatically detect settings,” Windows sends a request to a URL like wpad (Web Proxy Auto-Discovery Protocol) to find a configuration file. Several things can break this process:

  • A previous manual proxy configuration left a stale entry in the registry.
  • The WinHTTP proxy setting was set by an app or script and overrides the automatic setting.
  • Network location awareness (NLA) service is disabled or stuck.
  • Third-party VPN or security software changed the proxy settings without your knowledge.
  • The WPAD service on your router or network is not responding.

Check the Basic Windows Proxy Settings

Start with the most direct check. In Windows 10 and 11, go to Settings > Network & Internet > Proxy. Under “Automatic proxy setup,” make sure the toggle for “Automatically detect settings” is turned On. If it’s already on, turn it off, wait a few seconds, then turn it back on. This forces Windows to re-run the detection.

Also, under “Manual proxy setup,” ensure the “Use a proxy server” toggle is Off unless you actually have a manual proxy. A leftover manual proxy can override automatic detection.

Reset WinHTTP Proxy from the Command Line

If the basic toggle doesn’t work, the WinHTTP proxy setting may be stuck. Open a command prompt as an administrator (search for “cmd”, right-click, and choose “Run as administrator”). Then run:

netsh winhttp reset proxy

This resets the WinHTTP proxy to “direct access” (no proxy). After that, restart your computer and check the automatic detection again. This command does not change your browser’s proxy settings, but it clears the system-level proxy that Windows itself uses for many services.

Clear the Registry Proxy Entries

Sometimes the proxy settings are stored in the registry and are not cleared by the toggle. Open the Registry Editor (regedit) and navigate to:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings

Look for the values ProxyEnable and ProxyServer. If ProxyEnable is set to 1, double-click it and change it to 0. Also, if AutoDetect is set to 0, change it to 1. Be careful – editing the registry can cause problems if you make a mistake. Always back up the registry before making changes.

Restart the Network Location Awareness Service

The Network Location Awareness (NLA) service helps Windows detect network properties, including whether a proxy is required. If this service is stopped or hung, automatic detection can fail. Open the Services app (type services.msc in Run), find Network Location Awareness, right-click and choose Restart. Also, make sure its startup type is Automatic. Do the same for the DHCP Client service, since WPAD often relies on DHCP.

Flush DNS and Renew IP Configuration

A stale DNS cache or an old IP lease can prevent Windows from finding the WPAD server. Open the command prompt as administrator and run these commands in order:

ipconfig /flushdns
ipconfig /release
ipconfig /renew

This forces your computer to get a fresh IP address and DNS settings from the router. After that, restart the browser and test the proxy detection again.

When to Use a Manual Proxy Instead

If automatic detection still fails, your network may not actually provide a WPAD server. In that case, you have two options:

  • Ask your network administrator for the proxy server address and port, then enter it manually in the proxy settings.
  • Use a PAC file URL if your network provides one, and enter that in the “Use setup script” field.

Manual configuration is more reliable in networks that don’t support WPAD, but it requires you to know the exact proxy details.

Frequently Asked Questions

Why does my browser say “Unable to connect to the proxy server”?

This usually means Windows has a proxy configured (either manually or via a script) but the proxy server is not reachable. Check the proxy settings in Windows and in your browser. If you are not on a corporate network, turn off the manual proxy and enable automatic detection.

Will resetting WinHTTP affect my VPN or other software?

Resetting WinHTTP to direct access can temporarily affect software that relies on the system proxy, like Microsoft Store or some enterprise apps. However, most modern apps use the WinINET settings (the ones you see in Settings), so the impact is minimal. You can always re-apply a manual proxy later.

How do I know if my network has a WPAD server?

You can check by opening a browser and going to http://wpad/wpad.dat. If you get a file download or a text response, the WPAD server exists. If you get a timeout or an error, there is no WPAD server, and automatic detection will never work.

Can a VPN cause Windows to stop auto-detecting proxy settings?

Yes. Many VPN clients modify the system proxy settings to route traffic through a local proxy (like 127.0.0.1). If the VPN disconnects or crashes, it may leave a stale proxy entry. Disable the VPN, reset WinHTTP, and re-enable automatic detection.

Is it safe to edit the registry to fix proxy settings?

Editing the registry is generally safe if you only change the proxy-related values mentioned above. However, making other changes can cause system instability. Always export a backup of the registry key before editing, and only change the values described in this article.

Why does automatic detection work on one Windows PC but not another on the same network?

This often points to a local issue on the failing PC – a corrupted proxy cache, a disabled service, or a leftover manual proxy. Follow the steps in this article on that specific PC. If the problem persists, compare the network settings between the two PCs to spot any differences.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →