ERR_CONNECTION_REFUSED in Chrome: How to Fix It

ERR_CONNECTION_REFUSED appears in Chrome as “This site can’t be reached. [site] refused to connect.” It means Chrome reached the computer it was looking for, but that computer actively said no. Nothing was listening on the port Chrome tried, or something in the way rejected the connection immediately.

That’s a useful clue. Your internet works, and DNS found an address. The rejection happened at the very last step. So the cause is one of three things:

  • the website’s server is down or not accepting connections on that port,
  • a proxy, VPN, firewall or antivirus on your side is rejecting the connection, or
  • if you’re a developer, nothing is running on that localhost port.

Refused vs Timed Out

These two errors are easy to confuse, but they point in different directions:

ErrorWhat happenedUsually means
ERR_CONNECTION_REFUSEDThe server answered “no” instantlyNothing is listening, or something on your side is blocking
ERR_CONNECTION_TIMED_OUTNo answer at all before Chrome gave upThe server is unreachable, or something is silently dropping traffic

If you’re seeing the second one instead, the fixes for ERR_CONNECTION_TIMED_OUT focus on packet loss and blocked traffic rather than refused ports.

If You’re Visiting a Website

1. Check Whether It’s Just You

Open the site on your phone with Wi-Fi turned off, using cellular data. If it fails there too, the website is down or rejecting everyone. There’s nothing to fix on your end; try again later. If it loads fine on cellular, the problem is on your network or computer, so keep going.

2. Try Both http and https

Type the address with https:// and then with http://. Some older or smaller sites, and many device setup pages, only answer on one of them. A site that only serves https refuses plain http connections, and the reverse happens too.

3. Clear Cookies and Cache for the Site

Click the icon to the left of the address bar, choose Site settings, then Delete data. Or clear browsing data from the last day under Settings > Privacy and security > Delete browsing data.

4. Turn Off Proxy and VPN

A proxy that’s misconfigured or no longer running refuses every connection Chrome sends to it.

  • Windows: Settings > Network & internet > Proxy, and turn off Use a proxy server.
  • Mac: System Settings > Network > Wi-Fi > Details > Proxies, and turn them all off.

Disconnect any VPN and reload, too. VPNs and proxies both reroute your traffic, but a VPN encrypts everything while most proxies only handle the browser, and the main differences between a VPN and a proxy explain why each can break connections in its own way.

5. Check Firewall and Antivirus

Web protection features in security suites sometimes block sites with an outright refusal. Pause web protection for a minute and reload. If that fixes it, add the site as an exception rather than leaving protection off.

6. Flush DNS

A stale DNS entry can send Chrome to an old server that no longer accepts connections. On Windows, run ipconfig /flushdns in Command Prompt. Then go to chrome://net-internals/#dns and click Clear host cache. The commands to flush DNS on a Mac are just as short.

7. Disable Extensions

Open an Incognito window, where extensions are usually off. If the site loads there, an extension is the problem. Turn them back on one at a time under chrome://extensions until the error returns.

If It’s Your Router’s Login Page

“192.168.1.1 refused to connect” is common when you’re trying to reach router settings. It usually means one of three things:

  • You’re using the wrong address. Not every router uses 192.168.1.1. Your router’s real address is your computer’s default gateway, which you can find by running ipconfig and reading the Default Gateway line.
  • You’re on a different network. If you’re connected to a mesh system, a hotspot or a VPN, the address points somewhere else.
  • The router only allows https, or a specific port, for its admin page. Check the label on the router for the exact address.

The most common router addresses, and what to do when the 192.168.1.1 login page won’t load, follow the same pattern.

If You’re a Developer: “localhost refused to connect”

“localhost refused to connect” means nothing is listening on that address and port. Check these in order:

  1. Is the server actually running? Look at the terminal. A crash on startup is the most common cause.
  2. Is it the right port? Your app may be on 3000 while you’re opening 8080. The startup log usually prints the correct URL.
  3. Is it bound to the right address? An app bound to 127.0.0.1 can’t be reached from another device. Bind to 0.0.0.0 for network access.
  4. Docker port mapping. The container port has to be published, for example -p 8080:80. Without it, the host refuses the connection.
  5. http vs https. If Chrome forces https on localhost because of an old HSTS rule, go to chrome://net-internals/#hsts and delete the domain security policy for localhost.
  6. Local firewall. Make sure the firewall allows your app, especially when testing from another device.

Testing from outside your home network adds one more layer: your router has to send incoming traffic to the right machine. Setting up port forwarding handles that, and an open port checker confirms from the outside that the port actually answers.

If You Run the Website

Visitors seeing ERR_CONNECTION_REFUSED means your server isn’t accepting connections:

  • Confirm the web server service (Nginx, Apache, Node and so on) is running.
  • Make sure it’s listening on port 80 for http and port 443 for https.
  • Check the server’s firewall and your hosting provider’s security groups.
  • After moving hosts, confirm DNS points to the new server’s IP address.

Quick Summary

Site works on cellular but not at home? Check your proxy, VPN, security software and DNS. Fails everywhere? The site is down. Seeing it on localhost? Your server isn’t running on that port, or Docker isn’t publishing it.



Leave a Comment