The proxy is closed but the internet does not work
A debugging proxy wrote itself into the system settings and did not get to remove the entry when it closed. How to find the leftover setting on macOS, Windows, Linux and a phone, and switch it off.
What happened
A debugging proxy writes its address, such as 127.0.0.1:7070, into the
system proxy settings and restores them on a clean exit. After a crash, force
quit or power loss the entry stays, pointing apps at a closed port.
Signs:
- Chrome and Edge:
ERR_PROXY_CONNECTION_FAILED; Firefox: The proxy server is refusing connections; pingworks: ICMP does not use the proxy;- apps with their own network stack may work while the browser does not.
Quickest fix: start the proxy and quit it normally. If that fails or the proxy is uninstalled, turn the setting off by hand.
macOS
System Settings → Network → the active connection → Details → Proxies. Turn off Web proxy (HTTP), Secure web proxy (HTTPS), and Automatic proxy configuration unless you set it.
From a terminal, for each network service:
networksetup -listallnetworkservices
networksetup -setwebproxystate "Wi-Fi" off
networksetup -setsecurewebproxystate "Wi-Fi" off
networksetup -setautoproxystate "Wi-Fi" off
The proxy is set per service: check Ethernet and USB adapters too.
Windows
Settings → Network & Internet → Proxy. Turn off Use a proxy server, and Use setup script unless you set it.
In PowerShell:
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 0 /f
netsh winhttp show proxy
WinHTTP is a separate setting read by services. Run netsh winhttp reset proxy
as administrator only if it shows the debugging proxy: the reset also removes a
corporate proxy.
Linux
GNOME:
gsettings set org.gnome.system.proxy mode 'none'
KDE: System Settings → Wi-Fi & Internet (Network in Plasma 5) → Proxy → No proxy.
Environment variables set in a shell or for the session:
unset http_proxy https_proxy no_proxy
systemctl --user unset-environment http_proxy https_proxy no_proxy
Also check ~/.bashrc, ~/.profile and /etc/environment.
Flatpak. A permanent flatpak override with a proxy applies after the
proxy is closed. Check with flatpak override --user --show.
A phone and an emulator
iPhone: Settings → Wi-Fi → ⓘ next to the network → Configure Proxy → Off.
Android: Settings → Network & internet → Internet → the gear next to the network → the pencil → Advanced options → Proxy → None.
Android emulator, if the proxy was set with adb:
adb shell settings put global http_proxy :0
If the proxy is running and the network still fails
It is not a leftover setting:
http://pages open,https://ones do not: the root certificate is not installed, see ERR_CERT_AUTHORITY_INVALID;- nothing opens, and a VPN or corporate proxy is on: see proxies and VPNs;
- a proxy-switching browser extension is installed: check its profile.
See it on your own traffic
Solpuga sets the system proxy when capture starts and restores the previous settings when it stops: use the title-bar button or the tray icon, not a force quit. After a crash the next launch restores them; on Linux an autostart entry also does so at the next login. Undoing the Linux command-line and Flatpak setup, including the permanent override versions up to 1.0.1 suggested: Quick Start.
Related
- Proxy not working with a VPN, an antivirus or a corporate proxyA debugging proxy, a VPN, an antivirus that scans HTTPS and a corporate proxy all compete for the same traffic. How to find which one took it, and how to chain them.
- ERR_CERT_AUTHORITY_INVALID through a proxy — how to fix itChrome does not trust the proxy's root certificate. Where to install it on macOS, Windows and Linux, and which browsers and tools ignore the system store.
- How to see the traffic from an iPhone or an Android phonePhone and computer on one Wi-Fi, a proxy in the network settings, a root certificate with full trust. Four steps, and the five things that break them.