Why can't I connect to my website?

What this error looks like

When you try to open your website, your browser says it can’t reach the site at all. In Chrome and Edge, you’ll see “This site can’t be reached” with a code like ERR_CONNECTION_REFUSED, ERR_CONNECTION_TIMED_OUT or ERR_CONNECTION_RESET. In Firefox, you’ll see “Unable to connect” or “The connection has timed out”.

These errors mean your browser couldn’t set up a connection to the server. That’s different from an error page shown by your website, like a 404 or 500 error. Those mean the connection worked fine, but something went wrong on the site itself.

If your browser instead says the address could not be found (for example DNS_PROBE_FINISHED_NXDOMAIN), the problem is with your domain name, not the connection. This article doesn’t cover that.

Why this happens

If your website works for other people but not for you, the connection is being blocked somewhere between you and the server. There are three places where this usually happens.

The first is your own device. Antivirus software, firewalls and browser extensions sometimes block websites they consider risky. Free hosting gets flagged more often than other websites, simply because it’s also used by people with bad intentions.

The second is your network or internet provider. Office and school networks often filter websites, and so do some routers with parental controls. Some internet providers block websites on their own, or because a court or government told them to.

The third is the hosting servers. To protect websites from attacks, the servers automatically block IP addresses that show suspicious behavior. Sometimes an IP address gets blocked even though you did nothing wrong, for example because it was used by someone else before you or because many people share it.

We can’t see what happens on your device or in your network, so you’ll need to do some checks yourself to find out which one applies. The steps below don’t require any technical tools, and each one rules out some of the possibilities.

Opening the server’s IP address directly, or testing with curl, doesn’t tell you anything. The servers only answer for domain names, and command-line tools are stopped by the browser security system. Use a browser, or the check-host.net test below.

Step 1: Check if the website works for other people

First, make sure the problem is only on your side. Go to check-host.net, enter the full address of your website and click the HTTP button. This tests your website from servers in many different countries.

If most locations show an OK result, your website is up and the problem is with your connection to it. Continue with the next step.

If most locations fail too, your website or the server it’s on is having problems, and the steps below won’t help. Check the forum to see if there are any known issues, or create a support topic if there aren’t.

Step 2: Try a different device and connection

Next, try opening your website on another device connected to the same network, like a second computer or a phone on the same Wi-Fi.

If the website works on the other device, the problem is on your original device. Try opening the website in a private window with browser extensions disabled, and check whether your antivirus or firewall software is blocking it. Most security software keeps a log of the websites it blocked.

If the website doesn’t work on any device on your network, try a completely different connection. The easiest option is your phone with Wi-Fi turned off, so it uses mobile data. A VPN works too.

If the website works on mobile data or through a VPN, the block is tied to your network. That means either your network or internet provider is blocking the server, or the server is blocking your IP address. The next steps help you tell those apart.

If you can easily get a new IP address, that’s a quick test as well. Many home connections get a new IP address when you turn your router off and leave it off for a few minutes. If the website works after that, your old IP address was most likely blocked by the server. If it still doesn’t work, the cause is more likely your network or provider. Not every connection gets a new IP address this way, so if nothing changes, that doesn’t prove much either way.

Step 3: Try HTTP instead of HTTPS

If your website doesn’t work on your normal connection, try opening it with http:// at the start of the address instead of https://. Type the full address yourself, because your browser may remember the HTTPS version otherwise.

If the HTTP version opens (even if it then shows an error or redirects to HTTPS), but the HTTPS version gives a connection error, the cause is almost certainly your network or internet provider. Some filters only look at secure connections, so they block HTTPS but let HTTP through. A block on the hosting servers applies to both.

If neither HTTP nor HTTPS works, this step doesn’t tell you much, so continue with the next one.

Some browsers automatically switch to HTTPS, even when you type http://. If that happens and you can’t stop it, you can skip this step.

Step 4: Check if other customers of your provider can reach the website

The clearest way to tell a provider block from an IP block is to test from another connection with the same internet provider. If your provider is blocking the server, all of its customers have the same problem. If the server is blocking your IP address, other customers can open the website just fine.

You can do this with Globalping, a free tool that runs tests from devices in many different networks around the world.

  1. Find out which provider you’re using. Open ipinfo.io on the connection that has the problem, and look for the line that starts with “AS” followed by a number and a name, like AS12345 Example Telecom. That code is your provider’s network number.
  2. Go to globalping.io and choose HTTP as the test type.
  3. Enter the address of your website as the target.
  4. Enter your provider’s network number (like AS12345) as the location. You can also try the provider’s name.
  5. Set the limit to 5 or more, so you get results from several devices, and start the test.

If the tests from your provider succeed, other customers can reach the website, so your provider is probably not blocking it. That means the server is most likely blocking your IP address.

If the tests from your provider fail with the same error you’re seeing, the problem is your provider. You can also try your country as the location. If tests from all over your country fail, the block may come from a national filter.

Globalping doesn’t have test devices in every network or country. If no devices are found for your provider, you can ask someone who uses the same provider, like a friend or a neighbor, to try opening your website from their connection instead.

What to do next

What you can do depends on where the block is.

If the block is on your device, check the settings and logs of your antivirus, firewall and browser extensions. Most security software lets you add an exception for a website you trust.

If the block is in your network or with your internet provider, it can only be removed by whoever manages that network. For an office or school network, that’s the IT department. For a home connection, you can contact your provider and ask why the website is blocked. Some providers block websites because a court or government requires it, and those blocks usually can’t be lifted on request. We can’t change how your provider handles our servers, but you can still use a VPN to work on your website in the meantime.

If the server is most likely blocking your IP address, the quickest fix is usually to wait. These blocks typically expire on their own within 24 hours, and you can use a VPN to work on your website in the meantime. If the block is still there after a day, create a support topic. We’ll then ask the server administrators to remove it, which can take some time. Please include the following information, so we don’t have to ask for it later:

  • The address of your website.
  • The exact error message your browser shows.
  • Your internet provider and its network number (the AS code from ipinfo.io).
  • Which of the steps above you tried, and what the results were.
  • A link to or screenshot of your Globalping results, if you were able to run them.
  • If you’re on a computer, the result of a traceroute to your website. On Windows, open Command Prompt and run tracert example.com. On macOS, open Terminal and run traceroute example.com. Replace example.com with your own domain, and copy all of the output into your topic. Don’t worry if the last lines only show timeouts, that’s normal.

If you’re not sure which of the three causes applies, create a support topic anyway and include the same information. The more steps you’ve tried, the easier it is to figure out what’s going on.

1 Like