Find out why your server never answers the connection

ERR_CONNECTION_TIMED_OUT is Chrome's error when it asked your server for a connection and heard nothing back before the computer's network stack gave up, so the page says the site took too long to respond. Nothing refused the connection; the request simply went unanswered. On your own site, look for a firewall silently dropping traffic on port 443 or 80, a DNS record pointing at an address where no server answers, or a server too overloaded to take new connections.

Why connection requests go unanswered

  • A firewall drops the traffic

    A firewall rule that discards packets, instead of rejecting them, leaves the browser waiting with no reply. Check the server's own firewall and any network firewall or security group in front of it for ports 80 and 443.

  • The address leads to no running server

    If DNS still points at a server you shut down, or at an IP address you gave back to your host, the browser's requests go somewhere nothing is set up to reply.

  • The server is down or cut off

    A machine that's powered off, frozen or disconnected from its network can't answer anything. Neither can a healthy one whose network at the host is having trouble.

  • The server is too busy to accept

    Each listening socket keeps a list of connections waiting to be accepted. On Linux, once that list fills up, new connection requests may be ignored rather than refused, so visitors wait while the server catches up.

  • One network can't reach it

    A firewall, VPN or filter on a visitor's network can drop traffic to your server. When the site loads from other networks, the problem sits on that path, not on your server.

Chromium reports ERR_CONNECTION_TIMED_OUT when the operating system's own attempt to connect times out, as socket_posix.cc shows, and net_error_list.h lists it as a connection attempt that timed out. RFC 9293 explains that opening a connection can fail after too many retransmissions of the first SYN segment, and the listen(2) manual says requests arriving at a full list may be ignored.

Test the connection with a short timeout

# Which address does the name point to? Compare it with your server's public IP
dig +short yoursite.com

# Does the TCP connection open at all? No TLS involved, so a timeout here means nothing answered
nc -vz -w 10 yoursite.com 443

# On macOS, nc caps the connection wait with -G rather than -w
nc -vz -G 10 yoursite.com 443

# Try to connect, giving up after 10 seconds; exit code 28 means it timed out
curl -sS -o /dev/null --connect-timeout 10 https://yoursite.com/; echo "exit $?"

# Try your server's address directly, leaving DNS out (203.0.113.10 stands in for it)
curl -sS -o /dev/null --connect-timeout 10 --resolve yoursite.com:443:203.0.113.10 https://yoursite.com/; echo "exit $?"

Read what the timeout tests show

  • If dig prints an address that isn't your server's, fix the DNS record first; the timeout comes from wherever that old address leads. If the address is right and nc times out, nothing at your server's address answered within 10 seconds. If nc connects but curl still exits with 28, the server accepted the connection and stalled during the TLS handshake, which curl's connect timeout also covers. Chrome reports that case as ERR_TIMED_OUT, covered in the guide linked below. Run the same commands from a second network, such as a phone on mobile data: a timeout from everywhere points at the server, its firewall or its host's network, while a timeout from one network points at that network.

  • curl's manual counts the TLS handshake as part of the connection phase that --connect-timeout limits, and lists exit code 28 as a timeout. nc opens only the TCP connection: OpenBSD's nc manual has -w end a connection that can't be established, and Apple's nc manual gives macOS -G for that. --resolve sends the request to the address you give, so a success there with a failure through DNS means the record is wrong, not the server.

How to fix a connection that times out

  1. Confirm DNS points at the serverCompare the address dig prints with the server's public address at your host. After a move or an IP change, update the A record, and the AAAA record if you publish one.
  2. Allow ports 80 and 443 throughOpen both ports to inbound traffic in the server's firewall and in your host's network firewall or security group. If a CDN or load balancer connects for visitors, allow its addresses as well.
  3. Check that the server is up and reachableUse your host's console to see whether the machine is running and connected. A frozen server needs a restart, and a network fault at the host needs your provider.
  4. Give the server room to accept connectionsIf the timeouts come and go with traffic, look at CPU, memory and open connections at those times. Add capacity, or put a cache or CDN in front so fewer requests reach the server.

Frequently asked questions

How long does Chrome wait before showing this error?

That depends on the visitor's operating system, which runs the connection attempt. A comment in Chromium's tcp_connect_job.cc puts the range between 20 and 190 seconds across systems, and Chrome caps the whole connection step at four minutes, after which it reports ERR_TIMED_OUT instead.

Why does the site time out for me but load for others?

Something on your path is dropping the traffic: a work firewall, a VPN, or a block on your network or at your provider. Your server can also drop your address on purpose, for example after a security tool flagged too many requests from it. Trying mobile data tells the two apart.

Is this the same as a 522 error from a CDN?

It's the same failure seen from a different place. With a CDN in front, the CDN is the one whose connection goes unanswered, and it shows the visitor an error page such as Cloudflare's error 522. ERR_CONNECTION_TIMED_OUT means the visitor's own browser got no answer, from your server or from the CDN itself.

How do I hear about timeouts before visitors do?

A firewall change or a server that froze overnight can leave every connection hanging for hours before anyone tells you about it. SiteCMD requests your home page every few minutes once you add the site, and it emails you when the site goes down and again once it recovers.