About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.
Chrome reports ERR_CONNECTION_REFUSED when the TCP connection is refused. Chrome Help states that the page didn't let Chrome connect or the page is blocked. Chromium defines NET_ERROR(CONNECTION_REFUSED, -102) as "A connection attempt was refused." The name already resolved; something at the address rejected the connect.
What the symptom means
Chrome Help:
ERR_CONNECTION_REFUSED: The page didn't let Chrome connect or the page is blocked.
Chromium tag 131.0.6778.85:
// A connection attempt was refused.
NET_ERROR(CONNECTION_REFUSED, -102)
That is different from ERR_CONNECTION_TIMED_OUT (no answer) and from Cloudflare Error 521, which is the same class of refusal when Cloudflare sits in front of the origin (Error 521).
Likely causes
These are the causes an administrator checks for this code; they are not Chrome Help’s list (only the last row is carried by Help’s firewall or antivirus wording).
| Cause | What you see | How to confirm |
|---|---|---|
| Nothing listening on the port | Immediate refuse on that host:port | Direct test to the origin port fails the same way |
| Firewall reject | Refuse from some networks only | Works off-LAN or after allow rules |
| Wrong port in the URL | Refuse on :80 while the site only serves :443 | Compare URL port with the listener |
| Local security software block | Refuse only on one PC | Chrome Help: firewall or antivirus among connection causes |
Prove the cause before changing anything
All of these are read-only.
1. Confirm the code is ERR_CONNECTION_REFUSED, not timed out or name-not-resolved.
2. Scope the failure. Chrome's connection guide: if the issue affects multiple websites, check your internet connection. The article's reading: one site points at that host or port; many sites point at a local firewall or offline path.
3. Note host and port from the URL. A refused connect means DNS worked far enough to pick an address.
4. Compare with a direct origin test from a shell on a trusted admin host when you operate the server. Matching refuse on the same port confirms the listener or a reject rule, not a Chrome UI quirk.
Fix
Start or repair the listener on the server
If you run the origin, save the service state first:
systemctl is-active nginx > web-service-before.txt
Use the unit name your host actually runs (nginx, httpd, caddy, or the app unit).
Risk: the next step starts or restarts the web service unit named in your check. A broken unit configuration can leave the site down for every visitor until you stop the failed start and restore the previous unit state.
Start or restart the service with your normal process so it listens on the expected address and port. Retest the URL from Chrome.
To undo it: return the service to the active/inactive state recorded in web-service-before.txt (stop it again if it was inactive; restart the previous known-good config if the new start made things worse).
Unblock the client or the port
Chrome Help Step 7 for connection errors: make sure any firewall or antivirus software isn’t blocking your connection. Save the product name and whether a block rule for the browser or port was enabled:
echo "product=<name> browser_or_port_block=<on or off as shown>" > local-block-before.txt
Risk: the next step turns off or relaxes local firewall or antivirus blocking for a test. While that protection is off, the device lacks that product's filtering until you turn it back on.
Temporarily disable the block or the product long enough to retest the URL.
To undo it: restore the product and block state from local-block-before.txt.
If the refuse is on a hosted origin behind Cloudflare, follow Error 521 for origin-down and IP allow-list work rather than this client article.
Confirm the fix
- Chrome loads the URL without
ERR_CONNECTION_REFUSED. - The same host:port accepts a connect from a second client.
- Any temporary local security change is reversed.
What to watch afterwards
- Deployments that stop the web service before the new listener is ready.
- Security agents that re-enable browser blocks after an update.
- Port changes in reverse proxies that leave bookmarks on the old port.
Read next
Related articles you may want next.
- TroubleshootingCloudflare Error 521: Web server is downCloudflare Error 521: origin refused Cloudflare connections. Check the web server is up, allow Cloudflare IPs, and match port 80 or 443 to your SSL mode.Read article
- TroubleshootingERR_CONNECTION_TIMED_OUT: the page took too long to connectChrome ERR_CONNECTION_TIMED_OUT or ERR_TIMED_OUT: connection too slow or busy. Distinguish drop from refuse, then fix path or origin.Read article
- TroubleshootingERR_NAME_NOT_RESOLVED: the hostname does not exist or has a different IPChrome ERR_NAME_NOT_RESOLVED: hostname missing or IP changed. Check the URL, DNS on another network, then fix the name or the resolver.Read article
Risks and limits
These steps have not been lab-tested.
Chrome Help does not list which process must listen. Chromium only defines the refused attempt. The article's own reading: a proxy that rejects CONNECT can present as refused; prove where the reject is generated before opening ports on the wrong host.
Sources
- Get help with common error messages in Chrome — Google, no date shown, accessed 2 December 2026
- Fix connection and loading errors in Chrome — Google, no date shown, accessed 2 December 2026
- net/base/net_error_list.h — Chromium tag 131.0.6778.85, accessed 2 December 2026
This article was originally published on .