ERR_CONNECTION_REFUSED means your browser reached the address it was given and was told “no”. Chrome’s own help page describes it as the page not letting Chrome connect, or the page being blocked (Chrome Help). The cause is on your device, on your network or on the website’s server, and the quickest way to know which is to test from a second connection. If it is your own site refusing visitors, you need to hear about it from a monitor, not from a customer. This guide covers both sides: the visitor’s fixes and the site owner’s checks.

Funny Monitors
Know When Your Website Stops Responding
Funny Monitors checks websites and APIs for uptime, with real-time alerts to help you respond when visitors cannot connect.

Visit

Key Takeaways

  • “Refused” is different from “timed out”: something answered and rejected the connection, usually because nothing is listening on that port or a firewall is rejecting it.
  • Load the page on mobile data. If it works there, fix your device or network. If it fails there too, the problem is the server.
  • For site owners, the usual culprits are a stopped web service, a wrong DNS record, a closed port or a firewall rule.
  • An external monitor that checks your site and ports from outside tells you the moment visitors start getting refused.

Table of Contents

What ERR_CONNECTION_REFUSED actually means

A browser opens a page in two steps. First it turns the domain into an IP address using DNS (the internet’s address book). Then it knocks on a specific door on that machine, called a port. Web pages normally use port 80 for plain HTTP and port 443 for HTTPS (VMHeaven).

ERR_CONNECTION_REFUSED appears when the machine is reachable but the door is shut or someone is turning visitors away. Flashcloud’s knowledge base puts it as the browser finding the IP address but getting no response on that port (Flashcloud). Chrome’s older builds called it Error 102.

It helps to separate three errors that look alike (Copahost):

Error What happened Typical cause
Connection refused Something answered and said no Service stopped, port closed, firewall reject rule
Connection timed out Nobody answered Server offline, firewall silently dropping traffic
Connection reset Connection opened, then was cut mid-transfer Server crash, overloaded service, network device interfering

That distinction is useful when you diagnose. A refusal is a fast, definite answer, so the server or something in front of it is alive and has made a decision.

Step one: is it you or the website?

Before you change any setting, find out where the fault sits. Three quick tests settle it.

  1. Try mobile data. Switch your phone off wi-fi and load the page. RackUp IT’s triage advice is that if the site loads on mobile data, the fault is your device or network, and if the same error appears there, it is the website’s server (RackUp IT).
  2. Try other websites. If several sites fail on the same device, suspect your connection, a proxy, a VPN or security software.
  3. Ask a status checker. Free “is it down” tools show whether the site works for other people. If it is down for everyone, nothing you do on your side will fix it (Hostinger).

One more cause is worth knowing. A generic browser error, rather than a hosting platform’s own error page, often points to local network or DNS trouble, upstream ISP blocking or, in some countries, government-level filtering (Vercel).

Fixes for visitors

If the site works on mobile data but not on your usual connection, work through these in order. They go from least to most disruptive.

Restart your router and test another browser

Unplug the router for 10 to 30 seconds, plug it back in and reload. Then open the page in an Incognito window (Ctrl+Shift+N in Chrome) or a different browser. If it loads there, a browser extension or cached data is to blame (Hostinger).

Clear the browser cache

In Chrome, open the clear browsing data panel, set the time range to All time and clear cached images and files. Stale cached data is a client-side cause that LiteSpeed lists alongside forward proxies, security software and outdated DNS caches (LiteSpeed).

Turn off proxy and VPN settings

A proxy server can cause the error if the web server blocks the proxy’s address, the proxy’s cache is out of date, or the proxy is offline or misconfigured. In Chrome, go to Settings, then Advanced, then System, then “Open proxy settings”, and untick “Use a proxy server for your LAN” on Windows (IONOS). Pause any VPN and antivirus web shield while you test, then switch them back on.

Flush your DNS cache

Your computer remembers the IP address it was given for a domain. If the site has moved, that memory is wrong, and you knock on a door that no longer leads anywhere. Hostinger gives these commands (Hostinger):

  • Windows (Command Prompt as administrator): netsh winsock reset catalog, then ipconfig /flushdns
  • macOS (Terminal): sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder

If your internet provider’s resolver still returns a stale address, switching to a public DNS service such as Google (8.8.8.8 and 8.8.4.4) or Cloudflare (1.1.1.1) is the usual next move. Vercel suggests comparing your default resolver’s answer with Google Public DNS: if every resolver returns the wrong IP or no answer, wait up to 24 hours for DNS propagation, which is the time it takes a change to spread across the internet (Vercel). For a deeper look at what happens when resolution itself fails, see this piece on DNS stops resolving in a cluster.

Know when to stop

If nothing changes, send the right person the right details. Contact your internet provider if many sites fail on every device, including a phone on mobile data. Contact the site owner if only one site fails everywhere. If the device belongs to an employer or school, the IT administrator controls the firewall, proxy and DNS settings and needs the failing URL and what you tested (macmyths). Include the exact error text and the time it happened.

If it is your own site: what to check

This is the case that costs money. A visitor who is refused does not wait or call. They go elsewhere. If the mobile-data test fails too, the refusal is coming from your server or the network in front of it. Work from the most common cause down.

1. Is the web service running?

Nothing listening on port 80 or 443 means the operating system refuses the connection. VMHeaven’s guide says that if the ss command shows no output for those ports, nothing is listening and the browser gets ERR_CONNECTION_REFUSED (VMHeaven). Check that Apache, Nginx or your application process is up, then read the access and error logs. Look for the service failing to start, port binding errors or firewall bans, and line up timestamps with the times visitors were refused (Copahost).

A less obvious variant: the port is open but the queue of waiting connection requests is full, so the operating system rejects new ones. It uses the same generic error as a closed port, so you cannot tell them apart from the browser (Stack Overflow). A server short of CPU, memory or available connections can behave the same way.

1. Is the web service running?

2. Is DNS pointing at the right machine?

Flashcloud lists three causes on its platform: the domain’s DNS points at the wrong IP, the hosting service behind the right IP is suspended (often for billing), or a local firewall or VPN is blocking the visitor (Flashcloud). After a DNS change, remember that visitors whose ISPs cached the old value see the change later than you do. Also check both address types: a stale AAAA record (the IPv6 address) can leave IPv6 visitors refused while IPv4 visitors are fine (vds.guru).

3. Is a firewall rejecting traffic?

There are two kinds of firewall rule, and visitors see different errors. A rule that drops packets silently produces a timeout. A rule that rejects them produces a refusal. On Linux with ufw, that is the difference between a deny rule and a reject rule, so if the web server is clearly running and visitors still get refusals, search for reject rules in ufw, iptables and nftables. Ports published by Docker can also bypass ufw rules (vds.guru).

On cloud hosting, check the provider’s firewall as well as the one inside the operating system. AWS lists both as common reasons for refused connections on Lightsail instances, along with an application not running on those ports (AWS re:Post).

4. Is the listener configured correctly?

A wrong SSL setup at the listener or virtual host is a server-side cause. LiteSpeed advises checking that the HTTPS listener uses port 443 with Secure set to Yes, then restarting the server (LiteSpeed).

5. Is a test on the server itself misleading you?

Testing from the server goes over the loopback interface, which firewalls let through, so it proves little about what the public sees (VMHeaven). You need a check from outside.

A note for developers on localhost

If the refusal is on localhost, no DNS or network is involved. In order of frequency: the dev server is not running, the port is wrong (Node commonly uses 3000, Django and Laravel 8000, Vite 5173, XAMPP 80), the server is bound to 127.0.0.1 rather than 0.0.0.0, or a Docker or WSL boundary means “localhost” inside a container refers to the container itself (Copahost).

Why you should not learn about it from a customer

Every fix above starts after somebody has noticed. The gap between the first refused connection and the first person telling you is lost sales, support tickets and trust. A refused connection is also a binary event: the door is either open or shut, which makes it ideal to check automatically.

The pattern that works for small teams is simple:

  1. Monitor the public URL, so you see what visitors see.
  2. Monitor the ports separately (80 and 443 for a website, plus any API or database port you expose), so you can tell “service down” from “page broken”.
  3. Check from more than one location, so a regional network fault is not mistaken for an outage, and a real outage is not dismissed as a local glitch.
  4. Send the alert to a channel someone actually reads, and tell customers what is happening.

Here is where this matters for each reader. A freelancer who looks after client sites wants a text message the moment one refuses connections. A small business owner wants to know before the Monday morning enquiries are missed. A SaaS or IT team wants the alert in its chat tool and the incident history to hand afterwards.

Catching connection refusals with Funny Monitors

Funny Monitors is built for exactly this job. You can set up website and API monitoring for the URL visitors load, and add port monitoring or TCP monitoring for the services behind it. Ping monitoring covers IPv4 and IPv6 hosts. Because the DNS record that sends visitors to the wrong machine is one of the common causes above, you can also add domain expiry monitoring so a lapsed registration does not take the site down quietly.

Catching connection refusals with Funny Monitors

Our monitoring is multi-location, and polling data shows how often your monitors are checked. Alerts go out by email, SMS, voice and team integrations, and there is an API and webhooks if you want incidents to flow into your own tooling. You can also publish a customisable status page, so visitors see a clear message while you fix the fault. Status pages, integrations and the API are included in the monitoring service.

Plans are published on the pricing page:

Plan Monthly Annual
Starter £5.00 per month £48.00 per year
Pro £15.00 per month £144.00 per year
Business £50.00 per month £480.00 per year

An Enterprise plan is also available, and additional notification seats can be added. SMS and voice credits are optional extras.

Funny Monitors

If you run one site, Starter is the place to begin. Teams with more monitors and people to alert can compare Pro and Business.

A short runbook for when the alert fires

When a monitor reports a refused connection on your own site, this order saves time:

  1. Confirm from a second location or mobile data that it is not just you.
  2. Check the web service is running and listening on 80 and 443.
  3. Check the DNS A and AAAA records point at the right server.
  4. Check the OS firewall and the cloud provider’s firewall for reject rules.
  5. Read the error log around the time of the first failure.
  6. If the server is healthy and the records are right, contact your hosting provider with the domain, the resolved IP and roughly when the error began, so they can check server-side whether anything is listening (Flashcloud). Bluehost also advises including the exact error message and what you have already tried (Bluehost).

If your status page is live, post a short announcement at step 1, not step 6. Visitors forgive an outage faster than silence.

FAQ

What does “refused to connect” mean?

Your browser reached the server’s address, but the connection was rejected. Usually nothing is listening on the port, or a firewall is actively rejecting the request. It differs from a timeout, where nobody answers at all.

Why does Chrome keep saying “This site can’t be reached”?

The message covers several errors, including refused, timed out and DNS failures. Check the error code beneath the message. If it is ERR_CONNECTION_REFUSED, test the page on mobile data to see whether your network or the site is at fault.

How do I fix ERR_CONNECTION_REFUSED as a visitor?

Restart your router, try Incognito or another browser, clear the cache, turn off proxy settings and VPNs, then flush your DNS cache. If the site also fails on mobile data, the fault is on the site’s side and only its owner can fix it.

Can ERR_CONNECTION_REFUSED be caused by DNS?

Yes. If the domain’s DNS points at the wrong IP address, or your computer or ISP holds an old address, the browser knocks on the wrong door. Flushing your DNS cache or switching to a public resolver often helps, and changes can take up to 24 hours to spread.

How can I be alerted when my site starts refusing connections?

Use an external uptime monitor that checks your URL and ports from outside your network and sends alerts by email, SMS or voice. A check from the server itself will not show what visitors see.

Sources

Related to this topic: Miscellaneous