How to Fix ERR_TUNNEL_CONNECTION_FAILED in Chrome
Chrome shows ERR_TUNNEL_CONNECTION_FAILED when it cannot open a tunnel through the configured proxy. Check the same HTTPS URL from Chrome and cURL to narrow the failure to the connection, authentication or tunnel response.
Tell the two Chrome proxy errors apart
Chrome reports ERR_TUNNEL_CONNECTION_FAILED when it cannot establish a tunnel through the selected proxy. With an HTTP proxy and an HTTPS destination, the request that opens the tunnel is called CONNECT. Chrome asks the proxy for a connection to a host and port, then starts the destination’s TLS handshake once a tunnel is open. The browser error is a network error, so the page generally cannot tell you the exact status or policy decision that stopped the tunnel. Chromium network error definitions.
ERR_PROXY_CONNECTION_FAILED points to a failure resolving the proxy’s hostname or connecting a socket to it. Start with the proxy server name, port, network or VPN required to reach it, and whether the service is listening. A proxy that answers CONNECT with an error has already responded over a connection. Diagnose the tunnel response before changing DNS or resetting Chrome. HTTP CONNECT semantics.
Compare the same HTTPS URL on approved routes
Use a simple, read-only HTTPS URL you control or are allowed to test. The TestMyProxies IP endpoint is a public option if the administrator permits it through both routes. If the problem occurs on a different approved host, repeat the checks with that exact URL. A proxy can open a tunnel to the IP endpoint and refuse another host under its destination rules. Keep the hostname, port and path the same across runs and make the tests close together so a service restart or network change is less likely to confuse the comparison.
On a network where direct access to the test URL is authorized, run this baseline. The command starts a separate cURL process, uses its command-line settings and requests the JSON response directly. Skip the direct comparison where network rules require the managed proxy. In Windows PowerShell, invoke curl.exe if curl resolves to a PowerShell command.
curl --disable --noproxy "*" --silent --show-error --max-time 15 \
--write-out "\nconnect=%{http_connect} destination=%{response_code}\n" \
"https://testmyproxies.com/api/my-ip"
From the same machine, repeat through the proxy Chrome is supposed to use. Replace the placeholder host, port and scheme with the actual approved proxy endpoint. The scheme in the proxy address describes the connection to the proxy itself. If the provider gives you an HTTPS proxy, use its HTTPS address and leave the destination URL as HTTPS.
curl --disable --noproxy "" --proxy "http://gateway.example:8080" \
--silent --show-error --max-time 15 \
--write-out "\nconnect=%{http_connect} destination=%{response_code}\n" \
"https://testmyproxies.com/api/my-ip"
These examples use Unix shell line continuations. For PowerShell, put the command on one line and use curl.exe. On PowerShell 7.3 or later with native argument passing at its default, the empty --noproxy value reaches cURL. Run the tests without a verbose trace if a credential has to be supplied. For Basic proxy authentication, cURL accepts --proxy-user with the username and prompts for the password. Test a proxy with cURL.
Read the CONNECT status before the destination status
| Trace outcome | Next check |
|---|---|
connect=000 with a proxy name or socket error | Check reachability to the gateway and the exact proxy port from the affected machine. |
connect=407 | Check the authentication scheme, the current proxy account, and any source IP allowlist. An initial challenge can be followed by a successful attempt with credentials. |
connect=403 | Confirm the allowed destination and port with the proxy operator. Ask which rule handled the request. |
connect=502 or connect=504 | Use the proxy’s log to check DNS resolution or connectivity from the gateway to the requested upstream. |
connect=200 followed by a TLS error or an HTTP error | The tunnel was accepted. Check TLS negotiation or the final destination response, depending on the next line. |
For a successful lookup through a typical HTTP proxy, expect connect=200, destination=200 and a JSON body containing an ip value. On the direct run, there is no CONNECT response, so a zero in that field is expected. On the proxy run, check the selected route whenever the CONNECT field is zero. Some failures happen before cURL has a status to display. Use the accompanying DNS, socket or certificate message to find the stage. cURL output variables. HTTP 407 Proxy Authentication Required. HTTP 502 Bad Gateway.
When cURL succeeds and Chrome still fails
Check whether Chrome selected the same proxy. An endpoint configured directly in a cURL command can differ from the route Chrome gets from the operating system, a managed policy, a browser extension or a proxy auto-configuration script. A PAC file chooses a route for the requested host and can offer multiple proxies or a direct route. An approved site may therefore work in Chrome while another host resolves to a different proxy. Confirm the affected browser profile and network before comparing results.
On a managed machine, open chrome://policy and ask the administrator to confirm the effective proxy policy. If the choice is still unclear, reproduce the error once in the affected profile while capturing a short log from chrome://net-export/. Keep the default capture mode, stop the log after reproduction and treat it as sensitive because it can contain hostnames and URLs. Share the capture only through the approved support channel. Chromium NetLog instructions. Chrome proxy and PAC behavior.
Give the operator the exact browser error, hostname and port, time with timezone, and the CONNECT status from the comparison if one was received. Include the network and profile where the issue occurred. Those details let the operator confirm which proxy accepted the client connection, which rule evaluated the tunnel and whether the upstream was reachable at the time. For scripts on the same host, compare the effective variables separately. How HTTP_PROXY, HTTPS_PROXY and NO_PROXY affect command-line clients.