Home › Web & HTTP

ERR_CONNECTION_RESET — how to fix

This site can't be reached
The connection was reset.
ERR_CONNECTION_RESET

Quick fix: Try another network or a mobile hotspot, and disable VPN/proxy/antivirus HTTPS scanning to find who resets the connection. On Windows run netsh winsock reset and netsh int ip reset, then reboot. If it's your server, check that it isn't crashing mid-request, that the TLS port actually speaks TLS, and proxy/upload size limits; test with curl -v https://site.

What it means

The browser connected, then received a TCP reset (RST). Compare:

Firefox shows "The connection was reset"; curl shows Connection reset by peer (curl: (35) or (56)); Node shows ECONNRESET.

Step 1: find out who resets it

curl -v https://example.com/

Fix 1 (visitor): VPN, proxy, antivirus

Disable these one at a time and retry:

Also try an incognito window (rules out extensions) and a different browser.

Fix 2 (visitor): reset the network stack on Windows

Admin Command Prompt:

netsh winsock reset
netsh int ip reset
ipconfig /flushdns

Reboot afterwards. On macOS/Linux, toggling the interface or restarting the router clears most transient states.

Fix 3: MTU problems on VPNs, PPPoE, tunnels

Small requests work but large pages or TLS handshakes with long certificate chains reset or hang. Test the path MTU:

ping -M do -s 1472 example.com     # Linux; macOS: ping -D -s 1472

If it fails, lower it step by step and set the interface MTU accordingly (e.g. 1400 for many VPNs), or enable MSS clamping on the router.

Fix 4 (site owner): the server or app drops the connection

Common causes when every client sees it:

Fix 5: localhost dev servers

A dev server that crashes while handling the request resets the connection; check the terminal running it. A very common Docker case: the port is published (-p 3000:3000) but the app inside the container listens on 127.0.0.1, so Docker's proxy accepts the connection and then gets nothing, giving curl: (56) Recv failure: Connection reset by peer. Bind the app to 0.0.0.0 inside containers and WSL (e.g. vite --host 0.0.0.0, flask run --host=0.0.0.0).

Last updated 2026-11-23.