Black Friday: 60% off yearly plans with code BF2026, until November 30. See the deal

Troubleshooting

ERR_CONNECTION_REFUSED: what it means and how to fix it

ERR_CONNECTION_REFUSED means your browser reached the destination, but nothing there accepted the connection, so the attempt was refused. The usual cause is that no service is listening on that port, or a firewall rejects it. Check the address and port first, then the service.

The short answer
  • The host answered, but nothing accepted the connection on that port.
  • Visitors: confirm the address, try another network, check proxy and VPN, retry later.
  • Owners: confirm the service is running and listening, and the firewall allows the port.
Try the website status checkerFree, live, no signup

How is a refused connection different from a timeout or a reset?

Chrome connection errors (definitions from the Chromium error list)
ErrorMeaningWhat it usually points to
ERR_CONNECTION_REFUSED (-102)A connection attempt was refusedNo listener on the port, or a firewall that rejects
ERR_CONNECTION_TIMED_OUT (-118)A connection attempt timed outSilent drop: firewall, routing or an unreachable host
ERR_CONNECTION_RESET (-101)A connection was reset (TCP RST)An established connection was cut off
ERR_EMPTY_RESPONSE (-324)Server closed the connection without sending dataServer or proxy crashed or dropped the request

Source: Chromium net_error_list.h.

What causes ERR_CONNECTION_REFUSED?

Service not running

The web server, app server or database crashed, stopped or was never started.

Wrong port

The site runs on 3000 or 8080 but you opened port 80 or 443, or the app listens on a different port than the proxy expects.

Firewall rejects the port

A firewall rule set to reject, rather than drop, answers with a refusal.

Listening on localhost only

The service binds to 127.0.0.1, so it works on the server but refuses outside connections.

Wrong IP address

DNS or a hosts file points at a machine that does not run the site.

Local proxy or VPN

A browser proxy, VPN or security tool on your device refuses or mishandles the connection.

How do you fix ERR_CONNECTION_REFUSED?

  1. 01

    Check the address and port

    Look for typos and the right scheme. http:// and https:// use different ports, 80 and 443 by default.

  2. 02

    Test from another network or device

    If it works elsewhere, the problem is your device, network, proxy or VPN. If it fails everywhere, the server is the cause.

  3. 03

    Disable proxy and VPN temporarily

    Check proxy settings in the browser and OS, and test without a VPN.

  4. 04

    Test the port directly

    Use the commands below to see whether the port accepts connections.

  5. 05

    Owners: confirm the service listens

    Run ss -tlnp on the server and check the service is bound to the public address and expected port.

  6. 06

    Owners: check firewall and security groups

    Allow the port in the host firewall, cloud security group and any CDN or load balancer in front.

How do you test whether the port is open?

Commands that show a refusal, a timeout or success
# any OS with curl: -v shows "Connection refused" if refused
curl -v https://example.com:443

# Windows PowerShell
Test-NetConnection example.com -Port 443

# on the server: what is listening, on which address
ss -tlnp

Common questions

What does ERR_CONNECTION_REFUSED mean?

It means your browser tried to connect and the connection attempt was refused. The destination host answered, but no service accepted the connection on that port, or a firewall rejected it.

How do I fix ERR_CONNECTION_REFUSED on localhost?

The development server is not running or is on a different port. Start it, read its output for the real port, and open that port. Also check whether it binds to 127.0.0.1 versus 0.0.0.0 if you access it from another device.

Is ERR_CONNECTION_REFUSED a problem with my computer?

Sometimes. Test the site from another device and network. If it fails everywhere, the server is the cause. If it works elsewhere, check your proxy, VPN, security software and any hosts file entries.

What is the difference between connection refused and connection timed out?

Refused means something answered quickly with a rejection. Timed out means nothing answered, which typically points to a firewall that silently drops packets, a routing problem or a host that is down.

Can a website be down with ERR_CONNECTION_REFUSED?

Yes. If the web server process stopped, the host refuses connections on ports 80 and 443. An uptime monitor that checks from outside will report this within minutes, and it is a strong sign that the service, not the network, failed.

Know when your port stops answering

Aepto checks your sites from up to six regions and alerts you when a connection fails.