What the Error Means
Chrome and other Chromium-based browsers show "This site can't be reached" and "took too long to respond" with the code ERR_CONNECTION_TIMED_OUT. Compare it with ERR_CONNECTION_REFUSED, where the server answers with a refusal at once. When the site is proxied through Cloudflare, the same silence between the CDN and your server shows as error 522.
What a Visitor Can Try
- Reload after a minute: a server that is restarting or overloaded may answer shortly.
- Use another network: if the site opens on mobile data, the local network blocks or loses the traffic.
- Turn off a VPN or proxy for one test: an exit that is down produces timeouts on every site.
- Check the address and port: a port the site does not use often times out.
- Clear the site's cache: an old cached address or redirect can point to a dead server.
Is the Server Up?
Open the server console in your provider's control panel. If you can log in, check the load:
uptime
free -h
systemctl status nginx
A server that is out of memory or swapping heavily can stop accepting connections without refusing them. A ping from your computer helps too, but many networks block it, so no reply proves nothing on its own; see ping command.
Does the Request Reach the Server?
Watch for incoming connections while you load the site from another machine:
sudo tcpdump -ni any 'tcp port 443'
Install it with sudo apt install tcpdump on Debian and Ubuntu or sudo dnf install tcpdump on AlmaLinux and Rocky Linux. If connection attempts appear and get no reply, the server's firewall or the service is the problem. If nothing appears, the traffic stops before the server: DNS, a firewall in your provider's control panel, or routing.
Firewalls That Drop Packets
A firewall rule can reject a connection, which the browser reports as refused, or drop it, which the browser reports as a timeout. A ufw deny rule drops packets, so a port ufw does not allow times out. Open the web ports, keeping your SSH rule in place:
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
On AlmaLinux and Rocky Linux, add the http and https services with firewall-cmd. Details are in UFW allow port and firewalld basics. Check the firewall rules in your provider's control panel as well.
Wrong DNS Record
dig +short example.com A
If the answer is an old server's address, or an address where nothing runs, every visit times out. Correct the A record and wait for the old TTL to pass.
Routing
mtr -rwc 50 example.com
The options ask for a wide report (-r, -w) after 50 probes per hop (-c 50). Install the mtr package if the command is missing. Loss that starts at one hop and continues to the last line points to that part of the path. Loss on a middle hop only is usually harmless rate limiting by that router. Reading the report is covered in traceroute and mtr.
Test with a Short Timeout
curl -v --connect-timeout 5 https://example.com/ -o /dev/null
nc -zv -w 5 example.com 443
Both give up after five seconds. A timeout message confirms the problem; a refusal means packets now arrive and the service is the next thing to check.
Confirm the Fix
Run the curl command again from outside: it should connect and print a status line. Load the site from two different networks to be sure the path is clear for everyone.