What ERR_CONNECTION_CLOSED means
Chrome shows ERR_CONNECTION_CLOSED, usually under the heading "This site can't be reached" with the line "example.com unexpectedly closed the connection", when the connection to the website was closed before Chrome got what it was waiting for. In the Chromium source (net_error_list.h) it is error code -100, described as a connection closed in the way that corresponds to a TCP FIN: an orderly close, not an abort.
In plain terms, the browser connected, and then the other end (or something in between) politely hung up too early. That usually happens in one of two places: during the HTTPS handshake, before any page data is exchanged, or after the request was sent but before a usable response came back. You will also see it in developer tools and logs as net::ERR_CONNECTION_CLOSED, which is the same error with Chrome's internal prefix.
How it differs from similar errors
| Error | What happened |
|---|---|
ERR_CONNECTION_CLOSED | The connection was opened, then closed normally (FIN) at an unexpected moment, often mid-handshake. |
ERR_CONNECTION_RESET | The connection was aborted with a TCP reset (RST). |
ERR_EMPTY_RESPONSE | The request was sent and the server closed without returning a single byte of HTTP response. |
ERR_CONNECTION_REFUSED | Nothing accepted the connection on that port at all. |
ERR_CONNECTION_TIMED_OUT | Nothing answered within the time limit. |
The difference matters because a clean close is something software chose to do. A server, proxy or filter decided to end the conversation, so the fix is usually to find which one and why.
If you are a visitor: quick fixes in order of likelihood
Try these in order. Most people are fixed by one of the first three.
- Reload, then try another network. Press Ctrl+R (Cmd+R on Mac). If it still fails, switch from Wi-Fi to mobile data, or the other way round. On Jio, Airtel, Vi or BSNL the route to a site can differ between broadband and mobile data, so this one test tells you a lot. If the site loads on one network and not the other, the website is fine and the problem is on your connection.
- Turn off VPNs, proxies and "secure browsing" apps. These sit in the middle of every connection and close ones they cannot handle or decide to block. Disconnect any VPN app, then check proxy settings:
- Windows: Settings > Network & internet > Proxy. Switch off "Use a proxy server" unless your workplace requires it.
- Mac: System Settings > Network > select your connection > Details > Proxies. Turn off any proxy you did not set up.
- Android: Settings > Network & internet (or Connections) > VPN, and disconnect any active VPN. Also open the settings for your Wi-Fi network and make sure Proxy is set to None.
- Pause antivirus HTTPS or web scanning. Security suites that inspect encrypted traffic re-do the HTTPS handshake on your behalf. If they cannot negotiate with the site, Chrome sees the connection close. Pause the web shield or HTTPS scanning for a minute and retry; if that fixes it, add an exception for the site instead of leaving protection off.
- Try Incognito, then disable extensions. Open an Incognito window (Ctrl+Shift+N, or Cmd+Shift+N on Mac). If the site works there, an extension is the likely cause. Go to
chrome://extensionsand switch extensions off one at a time, starting with ad blockers, privacy tools and VPN extensions. - Flush Chrome's open connections. Chrome reuses connections, and a stale one can fail. Visit
chrome://net-internals/#socketsand click "Flush socket pools", then reload. - Clear cached data for the site. On a computer, click the icon to the left of the address bar, open site settings and choose to delete data. On Android, open Chrome, tap the three dots > Delete browsing data, select "Cached images and files" and confirm.
- Reset the network stack on Windows. Open Command Prompt as administrator and run:
Restart the computer afterwards. This clears damaged network settings left behind by old VPN or security software.netsh winsock reset netsh int ip reset ipconfig /flushdns - Check date, time and updates. A badly wrong clock can break HTTPS. Set date and time to automatic, and update Chrome (and Android System WebView on phones) from the Play Store or
chrome://settings/help. - Restart the router. Power it off for 30 seconds. Routers with built-in "security" or parental filtering can close connections to sites they classify as risky; check those settings if the problem is only on home Wi-Fi.
If none of this helps and the site fails on every network and device, the problem is almost certainly on the website's side. Let the owner know, with the time it happened and the exact error.
If you run the website: server-side checks
When visitors on many networks report the error, work through the server from the outside in.
1. Reproduce it from outside
From a machine that is not on the server's network:
curl -v https://example.com/
openssl s_client -connect example.com:443 -servername example.com
Note where curl stops. If the TCP connect succeeds and the output ends during the TLS handshake (for example with "unexpected eof" from OpenSSL or an SSL error from curl), the problem is TLS. If the handshake completes and the connection closes after the request, the problem is in the web server or application.
2. TLS configuration and SNI
A closed connection during the handshake usually means the server would not complete TLS for that hostname. Common reasons:
- No
serverblock or virtual host matches the hostname, so the request falls to a default that has no valid certificate. In nginx, a default server withssl_reject_handshake on;closes handshakes for unknown names on purpose; make sure your real hostname has its own block withserver_name,ssl_certificateandssl_certificate_key. - The protocols or ciphers on offer do not overlap with modern browsers. Keep
ssl_protocols TLSv1.2 TLSv1.3;as a sensible baseline. - The certificate or key file is missing or unreadable after a renewal. Test and reload:
sudo nginx -t && sudo systemctl reload nginx.
Look in the error log for handshake failures:
sudo grep -i -E "SSL_do_handshake|ssl_reject|no \"ssl_certificate\"" /var/log/nginx/error.log | tail -20
Related handshake problems have their own guides: ERR_SSL_PROTOCOL_ERROR and ERR_SSL_VERSION_OR_CIPHER_MISMATCH.
3. Crashes and killed processes
When a process holding open connections exits, the operating system closes them. If there was no unread data, that close is a FIN, which Chrome reports as closed; if there was unread data, it becomes a reset. Check for crashes and out-of-memory kills at the time of the reports:
sudo dmesg -T | grep -i -E "killed process|out of memory|segfault"
sudo journalctl -u nginx --since "1 hour ago"
sudo systemctl status nginx
Swap in apache2, httpd, lsws or your application service as needed. If out-of-memory kills keep appearing on a Bigdomainhost KVM VPS, you can move to a larger plan in place; the server reboots once and comes back with the new allocation.
4. Connection and worker limits
When the web server runs out of connection slots it drops new ones. nginx writes "worker_connections are not enough" to the error log; Apache logs that it reached MaxRequestWorkers. Check and raise limits only as far as memory and the file descriptor limit allow:
sudo grep -i "worker_connections are not enough" /var/log/nginx/error.log | tail
grep -E "worker_processes|worker_connections|worker_rlimit_nofile" /etc/nginx/nginx.conf
ss -s
Rate limiting, connection limiting (limit_conn) and DDoS protection rules can also close connections from busy IPs. Mobile networks in India often put many users behind one carrier-grade NAT address, so a per-IP limit that looks generous can still hit real visitors.
5. Keep-alive and proxy timeouts
Every hop closes idle keep-alive connections after its own timeout (nginx's keepalive_timeout defaults to 75 seconds). Trouble starts when a load balancer or reverse proxy keeps an idle connection open longer than the server behind it: the proxy reuses a connection the backend has just closed. Set each backend's idle timeout longer than the proxy in front of it. Behind nginx, an upstream closing early usually reaches the visitor as a 502 Bad Gateway, with "upstream prematurely closed connection" in the error log.
6. Firewalls and the network path
Host firewalls, intrusion prevention and web application firewalls can close or abort connections they flag. Check whether reports come from one region, ISP or IP range, then search firewall and WAF logs for those addresses. If you use fail2ban or similar, check its ban list.
7. Cloudflare or another CDN in front
With a proxying CDN, the visitor's connection ends at the CDN edge, not at your server. Origin failures normally appear as branded 52x error pages, not as ERR_CONNECTION_CLOSED. So if visitors see a bare Chrome error on a proxied site, look at the visitor-to-edge leg first: is the hostname actually proxied, and is it covered by the edge certificate? Cloudflare's free Universal SSL, for example, covers the apex and first-level subdomains, not deeper names such as a.b.example.com. Pause the CDN briefly and test the origin directly to separate the two. Background on how CDNs sit in the path is in what is a CDN.
How to tell which side the problem is on
| What you observe | Most likely side |
|---|---|
| Fails on one network or device, works on mobile data or another phone | Visitor: VPN, proxy, antivirus, router or ISP |
| Works in Incognito, fails in a normal window | Visitor: extension or cached data |
| Fails for everyone, on every network | Website: TLS, web server or firewall |
| Fails only at busy times | Website: worker or connection limits, memory |
openssl s_client fails from several outside networks | Website: TLS or virtual host configuration |
| Fails only on one ISP across several users | Network path or ISP-level filtering |
A quick independent check is to run curl -v from a server elsewhere, or to ask someone on a different ISP to open the page. If several unrelated networks fail in the same way, stop troubleshooting your own computer. If you only want a general picture of connectivity, the This site can't be reached guide covers the whole family of these errors.
A note on ISP blocks in India
Indian ISPs enforce blocking orders in different ways. Some show a notice page; others interrupt the connection once they see the hostname, which can surface as a closed or reset connection. If one specific site fails only on one provider and works on others, a block or filter on that network is a possibility. A site owner cannot fix that from the server.
Running your own server on Bigdomainhost
On a Bigdomainhost VPS you have root access, so every check above, from openssl s_client to dmesg, is yours to run, and the out-of-band console in the control panel still gets you in if a firewall change locks you out. On cPanel hosting, if visitors report closed connections there, send support the time, the URL and the visitor's network. Phone support is available in IST business hours, and WhatsApp at any time.
Sources (checked )
- Chromium: net/base/net_error_list.h
- Google Chrome Help: Fix connection errors
- IETF: RFC 9293: Transmission Control Protocol (TCP)
- nginx.org: Module ngx_http_ssl_module
- nginx.org: Module ngx_http_core_module
How Bigdomainhost can help
On the site owner's side, ERR_CONNECTION_CLOSED usually comes down to TLS or virtual host settings, and on Bigdomainhost Web & cPanel hosting you do not have to configure either by hand: a free Let's Encrypt certificate is issued for every domain and renews itself, and your site runs on servers in Mumbai, close to Indian visitors. Moving an existing site is free. If visitors still report the error, our engineers answer the phone in IST hours and WhatsApp at any time, in Hindi or English, and can look at it with you.