ERR_CONNECTION_REFUSED: what it means and how to fix it
ERR_CONNECTION_REFUSED means your browser reached the right address, but the computer there turned the connection away straight off. Something answered "no" instead of letting you in. Usually the website's server isn't accepting connections right now, but a proxy, VPN, firewall or old DNS record on your side can cause it too. Here's how to tell which, and how to fix it.
What ERR_CONNECTION_REFUSED means
To load a page, your browser opens a connection to the website's server on a port: 443 for HTTPS, 80 for plain HTTP. "Connection refused" means the computer at that address replied immediately that nothing on that port will accept the connection. It's a fast, definite "no", unlike a timeout, where nothing answers at all.
Each browser words it differently:
- Chrome and Edge: "This site can't be reached. example.com refused to connect. ERR_CONNECTION_REFUSED"
- Firefox: "Unable to connect. Firefox can't establish a connection to the server at example.com."
- Safari: "Safari can't open the page because Safari can't connect to the server."
Is it the website, or your connection?
Paste the address into CheckIfSiteDown. Our server connects from outside your network:
- If it shows the site as Down with a refused connection, the problem is on the website's side and only its owner can fix it. Try again later.
- If it shows Up, the site works for the rest of the world and something between you and the site is getting in the way. Work through the steps below.
Common causes
- The web server is stopped or restarting, for example during an update, a crash or maintenance.
- The wrong port or protocol, such as an address that includes a port number the site doesn't use, or
http://on a site that only listens for HTTPS. - A proxy setting on your computer or in your browser pointing at a proxy that isn't running.
- A VPN or security software blocking or rerouting the connection.
- Old DNS information: your computer still has the site's previous IP address, where nothing is listening any more.
- A firewall, on your network or the server's, rejecting the connection.
How to fix it
- Check the address. Make sure the spelling is right and remove any port number like
:8080unless you know the site needs it. Try typing just the domain, for exampleexample.com, and let the browser choose HTTPS. - Reload, then try another browser or a private window. If it works there, a browser extension or cached data is the cause: clear that site's cookies and cache, or turn off extensions one by one.
- Turn off your VPN or proxy. On Windows, open Settings → Network & internet → Proxy and switch off any manual proxy you didn't set up yourself. On a Mac, open System Settings → Network → your connection → Details → Proxies. Then try again. If you are on a VPN, switching to a different server is also worth a try.
- Flush your DNS cache so your computer looks up the site's current address. Our DNS guide shows the commands for Windows, Mac and Chrome.
- Restart your router, or switch to mobile data for a moment. If the site loads on another network, your home or office network is blocking it.
- Check your firewall or antivirus. Temporarily pause web protection; if the site then loads, add an exception for it rather than leaving protection off.
Still refused, but the site is Up for us? Let the site's owner know. Their firewall may be blocking your network or country by mistake.
If you're a developer seeing it on localhost
On localhost or 127.0.0.1, "connection refused" almost always means your development server isn't running, or is running on a different port from the one in the address bar. Check the terminal where you started it for errors and the port it reports. Inside Docker or a virtual machine, make sure the port is published to your computer and that the app listens on 0.0.0.0 rather than only on its own internal 127.0.0.1.
Fixes for site owners
- Check that the web server (Nginx, Apache, LiteSpeed, Node and so on) is running, and restart it if not.
- Make sure the server's firewall and your host's network firewall allow incoming connections on ports 80 and 443.
- Confirm your domain's
AandAAAArecords point at the right server with our DNS lookup. After a move, use the DNS propagation checker to see whether the change has reached everyone. - If the site has an IPv6 (
AAAA) record, make sure the server actually listens on IPv6 too. If it doesn't, visitors whose connection prefers IPv6 can be refused while everyone else gets in.
Refused vs timed out vs reset
| Error | What happened |
|---|---|
| ERR_CONNECTION_REFUSED | The server's computer answered straight away with "no": nothing is accepting connections on that port. |
| ERR_CONNECTION_TIMED_OUT | Nothing answered at all before the browser gave up. Often an overloaded or offline server, or a firewall that silently drops traffic. |
| ERR_CONNECTION_RESET | The connection started but was cut off partway. Often a network filter, VPN or unstable connection. |
The other "This site can't be reached" errors are covered in our guide to browser connection errors.
Common questions
Is the website down?
Maybe. ERR_CONNECTION_REFUSED means the site's address answered but turned you away. Check whether it's down for everyone. If it is, all you can do is wait.
It works for everyone else. What now?
Check the address, turn off any proxy or VPN, flush your DNS cache and try another network, such as your phone's mobile data.
I'm a developer and see it on localhost.
Your local server isn't running, or it's listening on a different port from the one in the address. Start it and check the port.