# ERR_CONNECTION_REFUSED: what it means and how to fix it

> ERR_CONNECTION_REFUSED means the server turned your browser away. Causes (stopped servers, wrong ports, proxies, VPNs) and fixes for every browser.

Source: https://checkifsitedown.com/guides/err-connection-refused

By [Werner](https://checkifsitedown.com/about#editor) Fix it 6 min read Updated 8 November 2026

`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.

![Diagram: the browser asks the website's server to connect on port 443 and is refused straight away because the port is closed; common causes include a stopped web server, wrong port, proxy or VPN settings, an old DNS address and a firewall](https://checkifsitedown.com/assets/img/guide-connection-refused.svg?v=1.9.13)

## 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](https://checkifsitedown.com/). 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

1. **Check the address.** Make sure the spelling is right and remove any port number like `:8080` unless you know the site needs it. Try typing just the domain, for example `example.com`, and let the browser choose HTTPS.
2. **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.
3. **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.
4. **Flush your DNS cache** so your computer looks up the site's current address. Our [DNS guide](https://checkifsitedown.com/guides/how-to-change-dns-server#after) shows the commands for Windows, Mac and Chrome.
5. **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.
6. **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 `A` and `AAAA` records point at the right server with our [DNS lookup](https://checkifsitedown.com/tools/dns-lookup). After a move, use the [DNS propagation checker](https://checkifsitedown.com/tools/dns-propagation) 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](https://checkifsitedown.com/guides/this-site-cant-be-reached-errors-explained).

## 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](https://checkifsitedown.com/) 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.

About the editor

Werner Editor, CheckIfSiteDown

Werner is a software engineer with a BSc in Computer Science and an avid interest in computer science, AI, programming and technology. He edits the guides on CheckIfSiteDown.

## More guides

- [500 Internal Server Error and "This page isn't working": what happened and what to do](https://checkifsitedown.com/guides/error-500-internal-server-error): 7 min read
- ["Site not allowed" and "This site is blocked": who's blocking you and what to do](https://checkifsitedown.com/guides/site-not-allowed): 6 min read
- [What is my IPv4 address, and why do I have an IPv6 address too?](https://checkifsitedown.com/guides/what-is-my-ipv4-address): 6 min read
- [WebRTC leaks explained: what they are, how to test for one and how to fix it](https://checkifsitedown.com/guides/webrtc-leaks-explained): 6 min read
- [Error 440 "Login Time-out": what it means in Outlook Web Access and how to fix it](https://checkifsitedown.com/guides/error-440-login-timeout): 6 min read
- [Error 494 "Request Header Or Cookie Too Large": what it means and how to fix it](https://checkifsitedown.com/guides/error-494-request-header-too-large): 6 min read
- [Error 530 and Cloudflare error 1016: what they mean and how to fix them](https://checkifsitedown.com/guides/error-530-origin-dns-error): 6 min read
- [Error 403 Forbidden: why you're blocked and how to fix it](https://checkifsitedown.com/guides/error-403-forbidden): 6 min read
- [DNS_PROBE_FINISHED_NXDOMAIN: what it means and how to fix it](https://checkifsitedown.com/guides/dns-probe-finished-nxdomain): 6 min read
- [Error 522 "Connection timed out": what it means and how to fix it](https://checkifsitedown.com/guides/error-522-connection-timed-out): 6 min read
- [Error 429 "Too Many Requests": what it means and how to fix it](https://checkifsitedown.com/guides/error-429-too-many-requests): 6 min read
- [502 vs 503 vs 504: what's the difference between these server errors?](https://checkifsitedown.com/guides/502-vs-503-vs-504): 6 min read
- ["This site can't be reached": browser connection errors explained and fixed](https://checkifsitedown.com/guides/this-site-cant-be-reached-errors-explained): 8 min read
- [Websites not working abroad? How to fix geo-blocks, banking and streaming when you travel](https://checkifsitedown.com/guides/websites-not-working-abroad): 7 min read
- [Website blocked on school, work or public Wi-Fi? Why it happens and what you can do](https://checkifsitedown.com/guides/websites-blocked-on-school-work-public-wifi): 8 min read
- [How to change your DNS server on Windows, Mac, iPhone, Android and your router](https://checkifsitedown.com/guides/how-to-change-dns-server): 7 min read
- [Website up but blocked for you? How a VPN gets you through (and when it won't)](https://checkifsitedown.com/guides/website-blocked-try-a-vpn): 7 min read
- [Why website checkers report false "down" results — and how to read them](https://checkifsitedown.com/guides/why-site-checkers-get-false-down-results): 6 min read
- [HTTP status codes explained: 403, 404, 500, 503 and Cloudflare 52x errors](https://checkifsitedown.com/guides/http-status-codes-explained): 7 min read
- [Is it down for everyone or just me? A 60-second troubleshooting guide](https://checkifsitedown.com/guides/is-it-down-or-just-me): 5 min read
