ERR_CONNECTION_REFUSED JavaScript Origin: On your device Last updated 9 Oct 2026

net::ERR_CONNECTION_REFUSED (This site can't be reached — refused to connect)

The browser reached the host but nothing was listening on that port.

Exact message you may see refused to connect
Seen on: JavaScript

Meaning

Locally it usually means the dev server isn’t running or is on another port; in production the web server or load balancer is down or the port is firewalled.

Common causes

  • Dev server not running / wrong port
  • Web server stopped
  • Using http:// to an https-only port or vice versa
  • Firewall rejecting the port

⚡ Quick fix

  1. Start the server and check its port
  2. Use the right scheme and port
  3. Check the server process and firewall

Detailed fix by platform

Linux

  1. ss -ltnp | grep :3000

How to diagnose

  1. Server — Is it listening on that port?
  2. Scheme — http vs https?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: On your device. Errors that are often confused with or caused by this one (click to open):

0x80070035 — 0x80070035: The network path was not found (System error 53) (Windows)0x800700350x80072EE7 — Error 0x80072EE7 (Windows Update / Microsoft Store: server name could not be resolved) (Windows)0x80072EE70x8024402C — Windows Update error 0x8024402C (cannot connect to update server) (Windows)0x8024402C14 UNAVAILABLE — gRPC Error: 14 UNAVAILABLE: No connection established / failed to connect to all addresses (API)14 UNAVAILABLE511 — HTTP 511 Network Authentication Required (HTTP)511AbortError — AbortError: The user aborted a request. / signal is aborted without reason (JavaScript)AbortErrorauth/network-request-failed — Firebase Auth: auth/network-request-failed — A network AuthError (such as timeout, interrupted connection or unreachable host) has occurred (Authentication)auth/network-request-…auth/popup-closed-by-user — Firebase Auth: auth/popup-closed-by-user / auth/popup-blocked / auth/cancelled-popup-request (Authentication)auth/popup-closed-by-…ERR_CONNE…

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.