Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Fix ERR_CONNECTION_REFUSED: 7 Working Solutions

· 5 min read · Home Tech

In this article
  1. What Does ERR_CONNECTION_REFUSED Actually Mean?
  2. Quick Fixes to Try First
  3. Clear Your DNS Cache and Change DNS Servers
  4. Disable Proxy Settings and Browser Extensions
  5. Check Your Firewall and Antivirus
  6. Reset Network Settings and Winsock
  7. When the Error Comes from a Local Server
  8. Frequently Asked Questions

ERR_CONNECTION_REFUSED means your browser reached the website's server but the server actively refused the connection, often because the site is down, the port is blocked, or your local firewall is interfering. To fix it, start by reloading the page, checking the site on another device, and then clearing your DNS cache or adjusting your firewall settings. This guide walks through the most common causes and step-by-step solutions for Windows, macOS, Android, and iPhone.

What Does ERR_CONNECTION_REFUSED Actually Mean?

This error is different from "server not found" or "DNS_PROBE_FINISHED_NXDOMAIN." Those mean the domain name couldn't be translated to an IP address. ERR_CONNECTION_REFUSED means the IP address was found, but the server at that address rejected the connection attempt. Think of it like calling a phone number that is active, but the person on the other end hangs up before you can speak.

Common scenarios include:

  • The website's server is overloaded or temporarily offline.
  • A firewall (Windows Defender, router, or antivirus) is blocking the port.
  • A browser extension or proxy setting is interfering.
  • The site is blocking your IP address or region.
  • You're trying to access a local server (like a home NAS or development server) that isn't running.

Quick Fixes to Try First

Before diving into technical troubleshooting, try these simple steps. They resolve a surprising number of cases.

  1. Reload the page – Press Ctrl+F5 (Windows) or Cmd+Shift+R (Mac) to bypass the cache.
  2. Try a different browser – If Chrome fails, test Firefox or Edge. If the site loads, the issue is browser-specific.
  3. Use a different device – Try your phone on the same Wi-Fi. If it works, the problem is on your computer.
  4. Restart your router and computer – This clears temporary network glitches.
  5. Check if the site is down for everyone – Use a service like downforeveryoneorjustme.com. If it's down globally, wait and try again later.

Clear Your DNS Cache and Change DNS Servers

A corrupted DNS cache can cause connection issues. Flushing it forces your computer to re-query DNS servers.

On Windows, open Command Prompt as administrator and run:

ipconfig /flushdns

On macOS, open Terminal and run:

sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder

If the problem persists, try switching to a public DNS like Google (8.8.8.8 and 8.8.4.4) or Cloudflare (1.1.1.1). You can change this in your network adapter settings. This often helps if your ISP's DNS is slow or blocking certain sites.

Disable Proxy Settings and Browser Extensions

Proxy settings or extensions can redirect traffic in ways that cause ERR_CONNECTION_REFUSED.

In Chrome, go to Settings → Extensions and disable all extensions, then reload the page. If that works, re-enable them one by one to find the culprit. Ad-blockers and VPN extensions are common offenders.

To check proxy settings on Windows: Settings → Network & Internet → Proxy. Ensure "Use a proxy server" is off (unless you know you need it). On macOS: System Preferences → Network → Advanced → Proxies. Make sure nothing is checked unless required.

Check Your Firewall and Antivirus

Windows Defender Firewall or third-party antivirus software can block legitimate connections. Temporarily disable your firewall (not recommended for long-term) to test.

If the site loads after disabling, you need to add an exception for your browser or the specific port. For example, if you're trying to access a local web server on port 3000, you'd need to allow inbound connections on that port.

To allow a port through Windows Defender Firewall:

  1. Open Windows Security → Firewall & network protection.
  2. Click "Advanced settings" (may require admin).
  3. Click "Inbound Rules" → "New Rule…"
  4. Choose "Port" → TCP → Specific local ports: 3000 (or whatever port you need).
  5. Select "Allow the connection" and finish.

If you're using a third-party antivirus, check its network protection settings for similar options.

Reset Network Settings and Winsock

Corrupted network configuration can cause persistent connection issues. Resetting the network stack is a safe, non-destructive fix.

On Windows, open Command Prompt as administrator and run these commands in order:

netsh winsock reset
netsh int ip reset

Then restart your computer. This resets the Winsock catalog and IP stack to default, which can fix issues caused by misconfigured network software.

On macOS, you can reset network settings by going to System Preferences → Network, selecting your Wi-Fi, and clicking "-" to remove it, then re-adding it. You'll need to re-enter your Wi-Fi password.

When the Error Comes from a Local Server

If you're trying to access a local development server (like localhost:3000) or a home server, ERR_CONNECTION_REFUSED usually means the server isn't running. Start the server again and check the port number. Also ensure your firewall allows connections on that port.

For websites hosted on your own machine, make sure the web server software (Apache, Nginx, etc.) is running. On Windows, check Task Manager for the process. On Mac/Linux, use ps aux | grep nginx or similar.

Frequently Asked Questions

Why does ERR_CONNECTION_REFUSED happen only on one device?

This points to a device-specific issue: a firewall rule, proxy, or browser extension on that device. Try a different browser or disable extensions first. If that doesn't work, check the firewall and network settings.

Can a VPN cause ERR_CONNECTION_REFUSED?

Yes. VPNs route traffic through remote servers, and if that server refuses the connection, you'll see this error. Try disconnecting the VPN and reloading the page. Also, some websites block known VPN IP ranges, so the server actively refuses connections from those addresses.

Is ERR_CONNECTION_REFUSED a sign of a virus?

Not necessarily. It's usually a network or server issue. However, malware can alter proxy settings or firewall rules, so if the error appears on many sites, run a full antivirus scan.

How do I fix ERR_CONNECTION_REFUSED on my phone?

On Android or iPhone, try toggling airplane mode on and off, then reload. Clear your browser's cache and data. If that fails, restart the phone. For persistent issues, reset network settings (Settings → General → Reset → Reset Network Settings on iPhone; on Android, Settings → System → Reset options → Reset Wi-Fi, mobile & Bluetooth).

What's the difference between ERR_CONNECTION_REFUSED and ERR_CONNECTION_TIMED_OUT?

Refused means the server actively rejected the connection, often because the port is closed or the firewall blocks it. Timed out means the server didn't respond at all within a set period, usually due to network congestion or the server being down.

Can I fix ERR_CONNECTION_REFUSED by changing my DNS?

Sometimes. If the DNS server returns an incorrect IP (e.g., a stale record), you might be directed to a server that refuses connections. Flushing DNS and switching to a reliable public DNS like Google or Cloudflare can resolve this.