Test the site on mobile data. If it fails everywhere, the site is down. If only your device fails, turn off VPN and proxy settings, flush DNS (ipconfig /flushdns), clear Chrome's cache, and check firewall or antivirus web filtering. On localhost, the app isn't running on that port.

What ERR_CONNECTION_REFUSED means

ERR_CONNECTION_REFUSED means your device reached the server's address but nothing accepted the connection on that port. Either the web server isn't running, a firewall actively rejected the connection, or a proxy setting is sending you to the wrong place.

On your own computer (localhost) it simply means the app you're testing isn't running on that port.

Signs of the problem

  • “This site can’t be reached. ERR_CONNECTION_REFUSED” in Chrome or Edge.
  • One site fails everywhere on your machine, or all sites fail.
  • It began after installing a VPN, proxy, or security tool.

Why ERR_CONNECTION_REFUSED happens

  • The web server or local dev server is not running or not listening on that port.
  • A proxy is configured (manually or by an extension) and pointing nowhere.
  • A firewall or antivirus web filter is blocking the connection.
  • Corrupt DNS or browser network cache.

Fixes to try, in order

  1. Open the site on another device or network to tell whether the problem is local to your machine or on the server side.
  2. Disable any proxy or VPN, then flush DNS and reset Chrome’s network state at chrome://net-internals/#dns and #sockets (command below flushes OS DNS).
  3. Check firewall and antivirus web-filtering rules; if it is your own server, confirm the service is running and bound to the right address and port.

Command

ipconfig /flushdns

Windows. On macOS/Linux: sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder (macOS) or sudo resolvectl flush-caches (Linux).

How to tell it worked: The site loads normally on the affected machine.

Prevent it from coming back

Review proxy settings after removing VPN software, and keep AV web-shield exclusions tidy.