DEV Community

Cover image for ERR_PROXY_CONNECTION_FAILED: what failed and how to fix it
proxymint
proxymint

Posted on Originally published at proxymint.com

ERR_PROXY_CONNECTION_FAILED: what failed and how to fix it

Originally published on proxymint.

ERR_PROXY_CONNECTION_FAILED means Chrome never got a working connection to the proxy. Tested causes, the errors it gets confused with, and the fix for each.

TL;DR

  • If you never set up a proxy, turn the setting off before you try anything else. chrome://settings/system leads to your computer's proxy settings or names the extension in charge. Turning off a test extension cleared the error on the next reload, while clearing the cache did nothing, and neither did restarting Chrome with a dead proxy still saved.
  • Ignore the "No Internet" heading. Chrome 157 printed it for a closed proxy port, so your connection may be fine. Try a phone on the same Wi-Fi with mobile data off before you touch your router.
  • One message covered three different mistakes in the test. A wrong port, a name that doesn't resolve and an https:// URL on a plain port all gave ERR_PROXY_CONNECTION_FAILED, and only the NetLog, Chrome's network log, showed which one it was.
  • A dead proxy doesn't always give this error. HTTPS sites behind a silent port got ERR_TIMED_OUT after 30 seconds, and a plain HTTP site through a silent proxy just kept waiting. A port that closes gave ERR_EMPTY_RESPONSE instead.
  • If it's SOCKS5 with a password, Chrome can't do it. curl got a 200 with the same details, yet Chrome offered no login method at all and printed ERR_SOCKS_CONNECTION_FAILED. Use the provider's HTTP port instead.

Key takeaways

  • Check the proxy's port before changing anything else, if you meant to use one. Connection refused from nc points at the port, the host or a firewall that rejects it, which saves you the Winsock and cache steps on those Windows fix lists.
  • Take the login out of --proxy-server. In Chrome 157 a username and password in that flag gave ERR_NO_SUPPORTED_PROXIES for HTTP and SOCKS5 alike, so use your tool's credential fields.
  • DIRECT in a proxy list hides a dead proxy, so check for it. With direct:// after a dead proxy the page loaded and no error appeared at all, which is the failure you won't notice.
  • Give a fixed proxy in a list 5 minutes, or clear it. Chromium kept using the second proxy after the first came back, until 5 minutes passed or Clear bad proxies was clicked.
  • When curl works and Chrome doesn't, capture a NetLog. chrome://net-export records the real cause, such as ERR_CONNECTION_REFUSED, underneath the -130.

Read the full guide on proxymint, with the commands, tables and sources.

Top comments (0)