Knowledgebase

Find frequently asked questions and setup guides by searching or by browsing the categories.

What the Page Tells You

The page has three parts: the heading, a sentence such as "took too long to respond" or "refused to connect", and an error code in capitals at the bottom. The heading only says that no page arrived. The sentence and the code say why. Other browsers use their own wording, such as "Unable to connect", but the causes are the same.

The Codes and Where to Go Next

For the last two, the sentence only says the page might be temporarily down or moved, so the code is the only clue. Related errors appear under a different heading: ERR_EMPTY_RESPONSE under "This page isn't working", and ERR_SSL_PROTOCOL_ERROR under "This site can't provide a secure connection".

What a Visitor Can Try

  • Check the address: a typo in the name or a wrong port number causes several of these codes.
  • Reload after a minute: a server restart or a short outage clears on its own.
  • Use another network: if the site opens on mobile data, the local network or its DNS is the cause.
  • Turn off a VPN or proxy for one test: both change how names are resolved and where traffic goes.
  • Clear the site's cache: the browser may hold an old address or protocol setting for the site.

Server Check 1: DNS

dig +short example.com A
dig +short example.com AAAA
ip -4 addr show scope global

The A record should match the server's public address. No answer means a DNS problem; an old address means the record was not updated after a move. See dig command.

Server Check 2: Is the Web Server Listening?

systemctl status nginx
sudo ss -ltnp | grep -E ':80 |:443 '

Use apache2 or httpd for Apache. The web server should listen on ports 80 and 443 on all addresses, not only on 127.0.0.1.

Server Check 3: curl from Inside and Outside

curl -I --resolve example.com:443:127.0.0.1 https://example.com/
curl -v --connect-timeout 10 https://example.com/ -o /dev/null

Run the first on the server and the second from another machine. If the first works and the second fails, something between the internet and the service blocks it. curl's message matches the browser code: could not resolve host, connection refused, or a timeout.

Server Check 4: Firewall

sudo ufw status verbose
sudo firewall-cmd --list-all

The first is for Ubuntu and Debian, the second for AlmaLinux and Rocky Linux. Ports 80 and 443 must be open, here and in any firewall in your provider's control panel.

Confirm the Fix

Open the site from a network you have not used yet, for example another device on a mobile connection. A loading page, or curl printing a status line, means the path is clear again.

Was this answer helpful?
Loading...