ERR_CONNECTION_REFUSED: Causes and Fixes

By Information Security Asia · Updated November 21, 2026 · 4 min read

Short answer: ERR_CONNECTION_REFUSED means your browser reached the server’s address, but the server (or something in between) actively refused the connection. Check whether the site is down for everyone, then on your side try another browser or network, disable any proxy or VPN, clear the DNS cache, and check that a firewall, antivirus or parental control is not blocking the site. If you own the site, check that the web server is running and listening on the right port, and that the firewall or hosting panel is not blocking visitors.

Chrome shows this as “This site can’t be reached. [site] refused to connect.” Edge shows the same code, and Firefox reports “Unable to connect”. The good news is that the error is specific: the network path exists, but the connection is being turned away.

ERR_CONNECTION_REFUSED: Causes and Fixes

What “refused” means technically

When your browser connects to a website, it first finds the server’s IP address through DNS, then opens a TCP connection to a port, usually 443 for HTTPS or 80 for HTTP. If nothing is listening on that port, or a firewall rejects the attempt, the server replies with a “reset” and the browser shows ERR_CONNECTION_REFUSED. This differs from ERR_CONNECTION_TIMED_OUT, where no reply comes back at all, and from DNS_PROBE_FINISHED_NXDOMAIN, where the name cannot be found.

Fixes for visitors

1. Check if the site is down for everyone

Try the site on your phone using mobile data, ask someone elsewhere, or use an online “is it down” checker. If it fails everywhere, the problem is on the website’s side and you can only wait.

2. Check the address

Make sure you typed the correct address. Some sites only work on HTTPS, others on a particular subdomain (www versus no www). Local addresses such as localhost:3000 or a router IP fail if the service is not running.

3. Disable proxy and VPN

A misconfigured proxy is a common cause. On Windows, go to Settings > Network & internet > Proxy and turn off “Use a proxy server” unless you need it. On Mac, check System Settings > Network > [your connection] > Details > Proxies. Disconnect any VPN and test again. Adware sometimes sets proxies silently, so an unexpected proxy setting is worth investigating.

4. Check firewall, antivirus and filtering

Security software, parental controls or a work network filter may block specific sites by rejecting connections. Temporarily disable web protection to test, or check the product’s blocked sites log. On a work or school network, the block may be intentional.

5. Clear DNS and browser cache

Outdated DNS entries can send you to an old server that no longer accepts connections. On Windows, run ipconfig /flushdns in Command Prompt as administrator. On Mac, run sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder in Terminal. In Chrome, you can also clear the host cache at chrome://net-internals/#dns. Then clear cached images and files in browser settings.

ERR_CONNECTION_REFUSED: Causes and Fixes

6. Try another DNS server

Switching to a public DNS service, such as Cloudflare (1.1.1.1), Google (8.8.8.8) or Quad9 (9.9.9.9), can rule out issues with your internet provider’s DNS.

7. Restart your router

Router glitches occasionally cause refused connections. Power it off for 30 seconds and back on.

8. Check extensions

Open the site in an Incognito window, which disables most extensions. If it works there, an extension, such as a privacy blocker or VPN extension, is interfering.

Fixes for site owners

If visitors report this error on your site, work through the server side. Check that the web server process (Nginx, Apache, LiteSpeed) is running, and restart it if not. Confirm it is listening on ports 80 and 443 with ss -tlnp or your hosting panel. Check the server firewall (ufw, firewalld, iptables) and your hosting panel’s security tools: aggressive brute-force protection or fail2ban rules can ban legitimate IPs, including your own. If you use a CDN such as Cloudflare, make sure the origin server allows the CDN’s IP ranges and that the SSL mode matches your origin’s configuration. After migrating to a new server, verify DNS records point to the new IP and that the old server is not still answering. Server error logs usually show the cause.

Is ERR_CONNECTION_REFUSED a security problem?

Usually not. It is a connectivity error. However, if every site suddenly refuses connections and you find an unfamiliar proxy configured, adware or a hijacker may be responsible; see removing adware from Windows. If your own site starts refusing connections unexpectedly, check that it has not been compromised or blocked by your host for malware.

Frequently asked questions

Why does only one website give me this error?

The site may be down, blocking your IP or region, or blocked by your security software or network.

Why does localhost refuse to connect?

The local development server is not running, or it is listening on a different port.

Can my internet provider cause this?

Occasionally, through filtering or DNS problems. Testing on mobile data helps rule it in or out.

Does clearing cookies fix it?

Rarely, but clearing cache and DNS can help if old records are the cause.

Sources

Keep reading