Sales open soon. The prices below show what we plan to charge. The tools on this site already work.

ERR_TUNNEL_CONNECTION_FAILED: what it means and how to fix it

Chrome and Edge show ERR_TUNNEL_CONNECTION_FAILED when they go through a proxy and the proxy does not open the connection to the site. The site itself is usually fine: the problem is between the browser and the proxy, or in what the proxy did next.

For an HTTPS page, the browser asks the proxy to open a tunnel to the site (an HTTP CONNECT request). If the proxy answers with an error, closes the connection or never gets through to the site, the browser stops and shows this error. Below are the causes, from the most common, and how to check each.

First: are you meant to use a proxy at all?

Many people see this error without ever setting up a proxy. A VPN that was removed, an "accelerator" or antivirus, an extension or old office settings can leave a proxy switched on in the system, and Chrome and Edge use it. If you did not set up a proxy on purpose, turn it off:

  • Windows 10 and 11: Settings → Network & internet → Proxy. Turn off Use a proxy server and Use setup script, leave Automatically detect settings on.
  • macOS: System Settings → Network → your connection → Details → Proxies. Turn off every proxy type and Automatic proxy configuration.
  • Android: tap the gear next to your Wi-Fi network (Pixel: Settings → Network & internet → Internet; Samsung: Settings → Connections → Wi-Fi), then Proxy → None. Also check whether a VPN app is on.
  • Extensions: open chrome://extensions (or edge://extensions) and switch off VPN and proxy extensions one by one.

Then open My IP: it should show your own address. If the error is gone, that forgotten proxy was the cause. If a setting turns itself back on after a restart, a program on the computer keeps setting it: look for it in the list of installed apps.

The causes, most common first

CauseHow it looksFix
The proxy could not reach the siteThe error comes and goes, some sites openReload. A residential exit is a real home connection and can drop; the next request gets another one.
Wrong username or passwordThe sign-in dialog appeared and was closed, or never appearedClose every window of the browser, open it again and enter the login. Check for spaces and the username options.
The plan ran out of traffic or was pausedEverything worked and then stopped on every siteCheck the balance and the plan status in your dashboard.
SOCKS5 port entered as HTTPNothing opens at allA browser's HTTP proxy needs the HTTP port, 8080 with Proxyron, not the SOCKS5 port 1080.
The proxy does not allow this site or portOne site fails, others openSome proxies block certain sites, or ports other than 80 and 443. The provider's rules say which.
Antivirus or firewall checks HTTPSThe error appeared after installing or updating an antivirusTurn off its HTTPS or web scanning for a minute and reload. If that helps, add an exception for the browser.
Office or school networkAt home it works, at work it does notThe network may allow only its own proxy. Ask the administrator, or try from another network.

Find out what the proxy answered

The browser hides the proxy's answer, and it names the cause exactly. Two ways to see it:

  1. Paste the proxy into the proxy checker. It tells apart a proxy that works, one that refuses the login, one that does not answer and one that speaks another protocol, and shows the exit IP and the round trip.
  2. Or ask the proxy for a page yourself with cURL, which prints the answer to the tunnel request:
curl -v -x http://USERNAME:PASSWORD@gate.example.com:8080 https://proxyron.com -o /dev/null

On Windows, write -o NUL instead of -o /dev/null, and in PowerShell type curl.exe instead of curl. More on proxies in cURL: the cURL guide. Look for the line after the CONNECT request:

The proxy answeredWhat it means
HTTP/1.1 200 Connection establishedThe proxy works. The problem is in the browser: a stale login, an extension, the antivirus. Restart the browser.
407 Proxy Authentication RequiredThe username or password is wrong, or the username options do not exist. The causes of 407 and the fixes.
402 or 403The plan is out of traffic, or the proxy does not allow this site or port.
502, 503 or 504The proxy did not get through to the site. Repeat: with rotation the next try goes through another exit.
Empty reply from server or a resetWrong port or protocol, often a SOCKS5 port used as HTTP.
Failed to connect or a timeoutThe proxy is not reachable: a wrong host or port, or your network blocks the port.

In Chrome and Edge

Edge is built on the same engine as Chrome, so the error and the fixes are the same. Both take the proxy from the system settings above, unless Chrome was started with --proxy-server.

  1. Close every window of the browser, including ones in the tray, and open it again. The browser keeps a rejected login until it is fully closed, and asks again only after that.
  2. Open chrome://net-internals/#sockets (edge://net-internals/#sockets in Edge) and click Flush socket pools: it drops old connections to the proxy.
  3. Try the same page in a guest window. If it opens there, an extension in your profile is the cause.

Setting the proxy up from the start: the Chrome guide covers Windows, macOS and Linux, and Edge uses the same Windows steps.

On Android

Chrome on Android shows the same error. It takes the proxy from the Wi-Fi network settings and asks for the login in a dialog. If the dialog does not come back after a wrong password, close Chrome completely (Settings → Apps → Chrome → Force stop) and open it again. A VPN app on the phone sends traffic past the Wi-Fi proxy, so turn it off while you test. Step by step: the Android guide.

When it works

Open My IP through the proxy. The address should be the proxy's exit, not yours, and the country should be the one you asked for in the username. If the error came back with only one site, that site may block proxy traffic: try a sticky session or another country.

Proxies by country

Once the proxy is set up, check that the exit IP is in the country you need. Each guide gives the username option for it.

All 25 country guides