ERR_CONNECTION_REFUSED

Network Error

What Does ERR_CONNECTION_REFUSED Mean?

ERR_CONNECTION_REFUSED is a network error that occurs when your browser attempts to connect to a web server, but the server actively rejects the connection. Unlike a timeout where the server simply does not respond, a connection refused error means the server received your request but deliberately declined to accept it. This is a TCP-level rejection, typically indicated by the server sending a RST (reset) packet back to the client.

This error is one of the most common network issues users encounter when browsing the web. It can appear in any browser, though the exact wording may differ. Chrome displays "ERR_CONNECTION_REFUSED," Firefox shows "Unable to connect," and Safari reports "Safari can't open the page." Regardless of the browser, the underlying cause is the same: the target server is not accepting connections on the requested port.

The error can affect a single website or all websites, depending on whether the issue is server-side or client-side. If only one site is affected, the problem likely lies with that specific server. If all sites are unreachable, the issue is more likely related to your local network configuration, firewall, or proxy settings.

Common Causes

The most frequent cause of ERR_CONNECTION_REFUSED is that the web server is not running or has crashed. When no application is listening on the target port (usually port 80 for HTTP or port 443 for HTTPS), the operating system automatically sends a connection refused response. This can happen during server maintenance, after a server crash, or when the web server software fails to start properly.

Firewall rules can also trigger this error. If a firewall on the server, your local machine, or anywhere along the network path is configured to block connections to the target port, the connection will be refused. Similarly, antivirus software with web protection features may block certain connections. ISP-level blocking or corporate network restrictions can produce the same result.

Proxy and VPN misconfigurations are another common cause. If your browser is configured to use a proxy server that is not available, or if your VPN connection has dropped but the proxy settings remain, all connections will fail with this error. Additionally, incorrect DNS resolution can point your browser to the wrong IP address where no web server is running.

Step-by-Step Fix

Start by checking whether the website is down for everyone or just you. Visit a service like "isitdown" to verify. If the site is down for everyone, the issue is server-side and you can only wait for it to be resolved. If the site works for others but not for you, the problem is on your end.

Clear your browser cache and cookies, then try again. Sometimes corrupted cache data can cause connection issues. Try accessing the site in an incognito or private browsing window to rule out extensions or cached data causing the problem. Also try a different browser to determine if the issue is browser-specific.

Check your proxy and VPN settings. Go to your system's network settings and ensure no proxy is configured unless you intentionally use one. If you use a VPN, try disconnecting it and accessing the site directly. Check your firewall and antivirus settings to make sure they are not blocking the connection. If you are a developer, verify that the server is running and listening on the correct port by using tools like our Ping Test or Port Scanner.

Related Network Errors

Frequently Asked Questions

What does ERR_CONNECTION_REFUSED mean?

ERR_CONNECTION_REFUSED means the server you are trying to reach actively rejected your connection attempt. The server received your request at the TCP level but no application was listening on the target port, or a firewall blocked the connection. It is different from a timeout, where the server simply does not respond at all.

Is ERR_CONNECTION_REFUSED a server problem or my problem?

It can be either. If the error only affects one website, it is likely a server-side issue such as the server being down or misconfigured. If it affects all websites, the problem is more likely on your end, such as firewall rules, proxy settings, or DNS issues. Check if the site works for others to determine the source.

How do I fix ERR_CONNECTION_REFUSED on Chrome?

Try these steps in order: clear your browser cache and cookies, disable any proxy settings, temporarily disable your firewall and antivirus, flush your DNS cache by running ipconfig /flushdns on Windows or sudo dscacheutil -flushcache on macOS, try a different DNS server like Google DNS (8.8.8.8), and restart your router.

Can a VPN cause ERR_CONNECTION_REFUSED?

Yes, a VPN can cause this error in several ways. The VPN server may be overloaded or down, the VPN may be routing your traffic through a location where the target site is blocked, or the VPN connection may have dropped while proxy settings remain active. Try disconnecting your VPN and accessing the site directly.

Why does ERR_CONNECTION_REFUSED happen on localhost?

When you see this error on localhost, it means no application is running on the port you are trying to access. Verify your development server is started, check that it is listening on the correct port, and ensure no other application is occupying that port. Use our Port Scanner tool to check which ports are open on your machine.