One site won’t open, but everything else does
Find where it stops: the name, the connection, the encryption or the page. One command for each step on macOS and Windows, and what to do about each result.
3 min read
On this page
If other sites work, your internet connection works. Something is wrong between you and this one site, and it's in one of four places. Start with two quick tests, then look for the step that fails.
Two quick tests
Try it elsewhere. What makes it work tells you where the cause is:
Ask whether others can reach it. If it's a large service, look at its official status. To test any site from elsewhere, run a global ping: probes in many countries try to reach it. If they all fail, it isn't you. (Some sites ignore ping, so if every probe times out, confirm it another way, such as on mobile data.)
The connectivity check tests popular sites from your browser. If all the rest of a group fail too, it's a wider problem:
Four steps, one command each
- 1NameDNS turns the name into an address
- 2ConnectionTCP reaches that address
- 3EncryptionTLS checks the certificate
- 4PageHTTP returns an answer
Each step needs the one before it. Find the first that fails.
Replace ckip.net with the site you can't open. The commands are for macOS and Linux first, then for Windows.
Name
dig +noall +comments ckip.net | grep statusnslookup ckip.netNOERROR (or an address, in nslookup) means that the name is fine. For a name that doesn't exist, the answer is:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 44234- NXDOMAIN: there's no such name. Check the spelling. If you're sure it exists, your resolver may be filtering it.
- SERVFAIL: the name exists, but the resolver couldn't get or verify the answer.
- No reply: your DNS server isn't reachable.
To find out whether it's your resolver, ask another one: dig ckip.net @1.1.1.1 or nslookup ckip.net 1.1.1.1. If that works and yours doesn't, change the DNS server in your network settings, or restart the router. Also check that the name isn't overridden in your hosts file (/etc/hosts, or C:\Windows\System32\drivers\etc\hosts).
Connection
nc -vz -G 5 ckip.net 443Test-NetConnection ckip.net -Port 443(-G 5 is the timeout on macOS; on Linux use -w 5.) "Succeeded" means a connection could be opened. Otherwise:
- Refused: the machine was reached and rejected it. The server program may not be running.
- Timed out: nothing came back. A firewall is dropping it, the server is off, or the route is broken. Run a traceroute to see how far it gets.
If it times out only over IPv6, your IPv6 connection is broken. Test with curl -4 and curl -6.
Encryption
curl -sS -o /dev/null https://wrong.host.badssl.com/curl: (60) SSL: no alternative certificate subject name matches target host name 'wrong.host.badssl.com'In Windows, use curl.exe in the same way. This is a test site with a deliberately wrong certificate. No output means that encryption is fine. With a certificate error, first check your computer's date and time, which is a common cause when many sites fail. If just one site fails, it's that site's certificate. On a company network it may be the inspection proxy's. Don't click through a certificate warning on a site where you sign in.
Page
curl -sI https://ckip.net/ | head -1HTTP/2 200A number means the site answered, so your network isn't the problem. 403 is a refusal and 404 a missing page. 429 means too many requests. 500 to 599 are faults on the site's side. Codes from 520 to 530, and pages with a four-digit number beginning with 1, come from Cloudflare.
All of them at once
curl -sS -o /dev/null https://the-site/ goes through the four steps in order and stops at the first failure. Its error tells you which:
If curl succeeds and the browser fails, the cause is in the browser: cookies, an extension, its own DNS or a proxy setting. Browsers show their own codes, explained in what browser errors mean.
Special cases
- An AI service? Region and account come into it too: is it down, or is it your network?
- Only at work or school? It may be blocked on purpose. Ask, rather than changing settings on a managed device.
- Only with a VPN on? The site may refuse that exit, or the VPN sends it along a different route.
- It opens, but asks whether you're human, over and over? See why it loops.
Telling someone about it
A good report contains the time with time zone, the exact message, the first step that failed, and whether it works on mobile data. "It doesn't work" can't be acted on. "Connection times out from provider X since 14:00 UTC, works on mobile" can.