ERR_CONNECTION_REFUSED
|

ERR_CONNECTION_REFUSED: What It Means and How to Fix It

Chrome shows This site can’t be reached and ERR_CONNECTION_REFUSED. The wording is blunt for a reason. Your browser knocked, and the server didn’t just ignore it. It said no.

Technically, your browser tried to open a connection on a specific port (usually 443 for https) and the computer on the other end actively rejected it. That happens when nothing is listening on that port, or when something like a firewall is set to refuse the connection.

Common causes

  • The website’s server is down or its web service has stopped.
  • You typed the wrong port or address, common with local development sites.
  • A firewall on your computer, router or the server is blocking the port.
  • A proxy or VPN that’s offline or misconfigured.
  • Stale DNS sending you to an old server that no longer hosts the site.
  • Antivirus web protection refusing the connection.

Is it you or the site?

Try the page on your phone using mobile data. If it fails there too, the site is down or misconfigured. If it works, the issue is on your computer or network.

Fixes for visitors

1. Reload and check the address

Make sure you’re using the right address. If it’s a link from an email, try typing the main domain instead.

2. Restart your router

Unplug it for 30 seconds. It clears odd routing and DNS issues.

3. Turn off proxy and VPN settings

On Windows, go to Settings > Network & internet > Proxy and turn off any manual proxy. In Chrome, a proxy set by an extension can also cause this, so check chrome://extensions.

4. Flush DNS and change DNS servers

An outdated DNS answer can point you at a server that’s no longer hosting the site, and that server will refuse you. Follow the steps in our DNS_PROBE_FINISHED_NXDOMAIN guide.

5. Clear browser cache

Clear cached files and cookies, then try again in an incognito window.

6. Check your firewall and antivirus

Temporarily turn off antivirus web protection and see if the page loads. On Windows, also check that your browser is allowed through Windows Defender Firewall under Allow an app through firewall.

On a phone or tablet?

The same error shows up in Chrome on Android and iPhone. Toggle airplane mode on and off, forget and rejoin the Wi-Fi network, and switch between Wi-Fi and mobile data to see which one fails. On Android, Settings > System > Reset options > Reset Wi-Fi, mobile and Bluetooth clears stubborn network settings. On iPhone, Settings > General > Transfer or Reset iPhone > Reset > Reset Network Settings does the same. You’ll need to re-enter Wi-Fi passwords afterward.

Check the port in the address

Look closely at the URL. If it includes a colon and a number after the domain, like :8443 or :2083, you’re connecting to a specific port. Some control panels and admin tools use unusual ports, and many networks block them. Try the same address without the port, or ask the site owner which address you should be using.

Fixes for developers (localhost)

Seeing ERR_CONNECTION_REFUSED on localhost or 127.0.0.1? That’s extremely common and almost always means your local server isn’t running on the port you’re visiting.

  • Make sure your dev server actually started and didn’t crash on launch. Check the terminal.
  • Confirm the port. If the server says it’s running on 3000 and you’re visiting 8080, you’ll get refused.
  • Check whether the server listens on 127.0.0.1 only or 0.0.0.0 if you’re testing from another device.
  • In Docker, make sure you published the port with -p.
  • Look for another app already using that port.

Fixes for site owners

  • Confirm the web server service (nginx, Apache, Node) is running.
  • Check the server firewall allows ports 80 and 443.
  • If you moved hosts, make sure DNS points to the new server.
  • Check your CDN or reverse proxy configuration.

How it differs from similar errors

ErrorWhat happened
ERR_CONNECTION_REFUSEDThe server actively said no
ERR_CONNECTION_RESETThe connection started, then got cut
ERR_CONNECTION_TIMED_OUTThe server never answered in time
DNS_PROBE_FINISHED_NXDOMAINThe address couldn’t be found at all

Our take

For visitors, it’s usually the website being down or a stray proxy setting. For developers, it’s almost always a server that isn’t running on the port you think it is. Check that first and you’ll save yourself twenty minutes.

FAQ

What does ERR_CONNECTION_REFUSED mean?

The server you tried to reach rejected the connection, usually because nothing is listening on that port or a firewall is blocking it.

Is ERR_CONNECTION_REFUSED my fault?

Sometimes. Proxy settings, VPNs or old DNS can cause it, but the site being down is also common.

Why do I get ERR_CONNECTION_REFUSED on localhost?

Your local server isn’t running, or you’re visiting the wrong port.

Can a firewall cause connection refused?

Yes. A firewall can block the port and refuse the connection.

How do I fix it in Chrome?

Check the address, restart your router, turn off proxies and VPNs, flush DNS, and clear your browser cache.

Related fixes

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *