Find out why your server never answers the connection
ERR_
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_
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
digprints 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 andnctimes out, nothing at your server's address answered within 10 seconds. Ifncconnects 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-timeoutlimits, and lists exit code 28 as a timeout.ncopens only the TCP connection: OpenBSD's nc manual has-wend a connection that can't be established, and Apple's nc manual gives macOS-Gfor that.--resolvesends 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
- 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.
- 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.
- 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.
- 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_
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_
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.
Trace other failed connections
- Website reliabilityHear about it when your site goes down, not days later from a customer.
- Cloudflare error 522Find where Cloudflare's packets go unanswered, then fix the firewall, the address or the load behind it.
- Connection refusedFind out why nothing is accepting connections on your server's port, then get the web server listening again.
- Chrome timeout errorWork out which step of the connection stalls, then fix the server or path that holds it up.