Talk to the NOC, IST hours — +91 75994 50220 support@bigdomainhost.com
Guide

How to fix ERR_CONNECTION_CLOSED in Chrome and on your server

"Unexpectedly closed the connection" means a connection was made and then ended too early. This guide explains what closed it, the quick fixes visitors should try first, and the server checks for site owners.

Short answer: ERR_CONNECTION_CLOSED means Chrome connected to the site but the connection was closed normally (a TCP FIN) before a usable response arrived, often during the HTTPS handshake. For visitors it is usually a VPN, proxy, antivirus HTTPS scanning or the network; try mobile data and Incognito first. For site owners it usually points to TLS or virtual host misconfiguration, a crashed web server, or exhausted connection limits.

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

ErrorWhat happened
ERR_CONNECTION_CLOSEDThe connection was opened, then closed normally (FIN) at an unexpected moment, often mid-handshake.
ERR_CONNECTION_RESETThe connection was aborted with a TCP reset (RST).
ERR_EMPTY_RESPONSEThe request was sent and the server closed without returning a single byte of HTTP response.
ERR_CONNECTION_REFUSEDNothing accepted the connection on that port at all.
ERR_CONNECTION_TIMED_OUTNothing 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.

  1. 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.
  2. 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.
  3. 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.
  4. 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://extensions and switch extensions off one at a time, starting with ad blockers, privacy tools and VPN extensions.
  5. Flush Chrome's open connections. Chrome reuses connections, and a stale one can fail. Visit chrome://net-internals/#sockets and click "Flush socket pools", then reload.
  6. 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.
  7. Reset the network stack on Windows. Open Command Prompt as administrator and run:
    netsh winsock reset
    netsh int ip reset
    ipconfig /flushdns
    Restart the computer afterwards. This clears damaged network settings left behind by old VPN or security software.
  8. 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.
  9. 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 server block or virtual host matches the hostname, so the request falls to a default that has no valid certificate. In nginx, a default server with ssl_reject_handshake on; closes handshakes for unknown names on purpose; make sure your real hostname has its own block with server_name, ssl_certificate and ssl_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 observeMost likely side
Fails on one network or device, works on mobile data or another phoneVisitor: VPN, proxy, antivirus, router or ISP
Works in Incognito, fails in a normal windowVisitor: extension or cached data
Fails for everyone, on every networkWebsite: TLS, web server or firewall
Fails only at busy timesWebsite: worker or connection limits, memory
openssl s_client fails from several outside networksWebsite: TLS or virtual host configuration
Fails only on one ISP across several usersNetwork 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 )

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.

Get cPanel hosting Get help with this error

Answers

Frequently asked questions

Still unsure? Call +91 75994 50220 or write to support@bigdomainhost.com — a human replies in IST hours.

What does ERR_CONNECTION_CLOSED mean?

It means Chrome opened a connection to the website, but the connection was closed normally before a usable response arrived. It often happens during the HTTPS handshake. Something chose to end the conversation: the server, a proxy, a VPN, antivirus software or a network filter.

What is the difference between ERR_CONNECTION_CLOSED and ERR_CONNECTION_RESET?

A closed connection ended with an orderly close (a TCP FIN), while a reset was aborted with a TCP RST packet. Both mean the connection ended early, and the causes overlap, but a close usually means software deliberately hung up, often during TLS, while a reset is a forced abort.

How do I fix ERR_CONNECTION_CLOSED on Android?

Switch between Wi-Fi and mobile data, disconnect any VPN app, check that your Wi-Fi proxy is set to None, clear Chrome's cached images and files, and update Chrome and Android System WebView from the Play Store. If the site still fails on every network, the problem is on the website's side.

Is net::err_connection_closed different from err_connection_closed?

No. net::ERR_CONNECTION_CLOSED is the same error with Chrome's internal net:: prefix, which appears in developer tools, console logs and apps built on Chromium. The causes and fixes are identical.

Can a website owner cause ERR_CONNECTION_CLOSED?

Yes. Common server-side causes are a hostname without a matching virtual host or valid certificate, TLS settings that do not match modern browsers, a web server process that crashed or was killed for running out of memory, exhausted worker or connection limits, and firewall or rate-limit rules. Testing with curl -v and openssl s_client shows where it fails.

Why does a site give ERR_CONNECTION_CLOSED only on my Wi-Fi?

If the site works on mobile data but not on your Wi-Fi, the cause is on that network: a router with security filtering, a proxy, a VPN, antivirus HTTPS scanning on your device, or filtering by the broadband provider. Restart the router and check its filtering settings, then test with the VPN and antivirus web scanning paused.

Support that picks up the phone.

In IST hours, in Hindi or English, and WhatsApp replies fastest at any time. Sales, migration and emergencies all reach the same engineers. No offshore queue, no 48-hour first reply.

Need cPanel or WHM with the ports already sorted?

Web & cPanel hosting comes with cPanel ready to log in to, reseller hosting adds white-label WHM, and a KVM VPS can have cPanel & WHM pre-installed. Call +91 75994 50220 or email support@bigdomainhost.com.