ERR_PROXY_CONNECTION_FAILED — a proxy is set that should not be
Traffic is being sent to a proxy that is not there. Browsers fail, and so does anything that respects the system proxy — including Windows Update and the Store.
What you see
"Unable to connect to the proxy server" in every browser, while ping works normally. Frequently follows removing malware, or a laptop that has left a corporate network.
What is actually wrong
A proxy left in the WinHTTP or WinINET configuration — by policy, by a removed VPN client, or by adware that set it deliberately. WinHTTP and per-user settings are separate, which is why fixing one often appears to do nothing.
Codes and articles
Fixes (3)
Clear the per-user proxy
One account. This is the setting the Settings app shows.
Read what is set, and note it in case it was deliberate.
Get-ItemProperty 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings' | Format-List ProxyEnable,ProxyServer,AutoConfigURLTurn it off and remove any automatic configuration script.
$k='HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings'Set-ItemProperty $k -Name ProxyEnable -Value 0Remove-ItemProperty $k -Name ProxyServer -ErrorAction SilentlyContinueRemove-ItemProperty $k -Name AutoConfigURL -ErrorAction SilentlyContinue
AutoConfigURL is the one people miss. Clearing the manual proxy while a PAC script is still set leaves the machine exactly as broken as before.
Close and reopen the browser — these are read at start-up.
Get-ItemProperty 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings' | Format-List ProxyEnable,AutoConfigURLReset the machine-wide WinHTTP proxy
Windows Update, the Store or a service is failing while browsers are fine — or the other way round.
Show the machine-wide setting. This is separate from the user's and is what services use.
netsh winhttp show proxyReset it.
netsh winhttp reset proxyIf a proxy is genuinely required for services, import the user's working settings rather than typing them again.
netsh winhttp import proxy source=ieRestart the update service so it picks the change up.
Restart-Service wuauserv
Find the policy that keeps putting it back
The setting is greyed out, or returns after a restart or a Group Policy refresh.
Check for the policy keys that lock the page.
Get-ItemProperty 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings' -ErrorAction SilentlyContinueGet-ItemProperty 'HKCU:\Software\Policies\Microsoft\Internet Explorer\Control Panel' -ErrorAction SilentlyContinue
On a domain machine, find which GPO is responsible rather than deleting the key.
gpresult /h %USERPROFILE%\Desktop\gpo.htmlstart %USERPROFILE%\Desktop\gpo.html
Deleting a policy-set value on a domain machine fixes it until the next refresh, at most 90 minutes away. The report names the GPO so it can be corrected once, centrally.
On a machine that has left a domain and kept the settings, remove the stale policy keys.
Remove-Item 'HKCU:\Software\Policies\Microsoft\Internet Explorer' -Recurse -Force -ErrorAction SilentlyContinuegpupdate /force
Related faults
Where this stops. This write-up was written and checked by hand. It says what each step changes, how to confirm it worked and how to reverse it, and anything destructive is flagged before you reach it. If it does not match what your machine is doing, search the Support Centre for the exact code or message — and when something needs a person, get in touch.