ERR_CONNECTION_REFUSED

Solve the ERR_CONNECTION_REFUSED Error

You might come across the ERR_CONNECTION_REFUSED message once while browsing a website. Actually, it’s a connection failed error message that says your browser is unable to establish a connection with the targeted server.

However, this problem is not as severe as it looks. Even a non-technical can easily resolve it with appropriate tips and tricks.

So, let’s have a quick glance at the ERR_CONNECTION_REFUSED error and then move to the main part.

What is ERR_CONNECTION_REFUSED?

ERR_CONNECTION_REFUSED is an error message that occurs when your browser is unable to connect to a website’s server. It means that the server has refused the connection request.

This typically happens if the server is down, or unreachable, or the connection request is refused. However, other factors like network misconfigurations, DNS issues, or firewall restrictions, can also trigger this error.

So, without any further ado, let’s start the solution of this error.

How to fix ERR_CONNECTION_REFUSED

ERR_CONNECTION_REFUSED error isn’t specified for any particular reason or browser. So, you might need to try a few different methods to get the solution.

1. Check if the website is down

Start with checking if the website is down for everyone or just you. You can use free tools like DownDetector or IsItDownRightNow to check the website’s status. 

If the site is down, you’ll need to wait for the server administrators to resolve the problem. Otherwise, proceed with the next steps.

2. Try accessing the website from another device

If the server isn’t down, the second potential solution is to test the website on a different device. This helps pinpoint whether the issue lies with your original device or the network.

If the error occurs only on the original device and not on the secondary one, the possible causes could include:

  1. Internet device issues.
  2. Outdated browser cache and cookies.
  3. Network firewall or router blocking the connection.
  4. Incorrect proxy settings.
  5. Outdated or malfunctioning DNS.
  6. Hosts file conflicts.
  7. ISP-related issues or regional restrictions.

By identifying whether the issue persists across devices, you can narrow down potential causes and troubleshoot more efficiently.

how to build a customer support team
To enhance your client support strategy—download our comprehensive FREE eBook and build a high-performing customer service team.

3. Restart your router and modem

Sometimes, issues can arise with the router’s connection to your Internet Service Provider (ISP). Restarting the router re-establishes this connection.

Also, these routers often store temporary network data (like DHCP leases) that may become corrupted over time.

Therefore, restarting your internet or Wi-Fi router can be the easiest but most effective solution for ERR_CONNECTION_REFUSED. 

  1. Turn off your wifi router and modem.
  2. Wait for 30 seconds then turn it on.
  3. After the connection stabilizes, try to browse the site.

If you haven’t got your expected solution then the problem might be a little more advanced and you need to follow the upcoming procedures.

4. Clear your browser cache and cookies

Every time you visit a website, a little scrap of info gets stored in your browser’s memory including corrupt cookies. So at one point it all gets clattered and makes your browsing slow.

Some simple steps can help you rule out corrupt cookies or cached-out error pages. 

  1. Go to your browser settings and click on privacy and security.
  2. Then click on delete browsing data and select all three options.
  3. Now simply click delete data to clear all your browsing history and cookies.

This primary technique can initially fix ERR_CONNECTION_REFUSED with many other errors actually. But if it doesn’t then you move on to the next steps.

5. Disable firewall and antivirus temporarily

Firewalls and antivirus software are essential for monitoring and blocking potentially harmful traffic. However, they can sometimes block legitimate websites due to misconfigured rules or mistakenly identifying them as potential threats.

So, disabling them for a certain period can solve this ERR_CONNECTION_REFUSED problem for you.

Disabling firewall and antivirus on your Windows

  1. Open Settings on your Windows, then go to Update & Security.
Windows update & security
  1. On the left menu, click Windows Security and go to Firewall & network protection.
Windows firewall & network protection
  1. Now under the Firewall & network protection, turn off each protection from domain network to public network.
Disabling firewall and antivirus on your Windows

After disabling the firewall, try reloading the page to check if the error is gone.

Disabling the firewall and antivirus proxy on your Mac

  1. In System Settings, go to Network.
Firewall mac
  1. Go into the Firewall protection.
  2. Then turn off the projection.
Turn off firewall on mac

Now, try reaccessing the website to see if the error is resolved.

6. Check your proxy settings

Sometimes the wrong proxy settings could be the cause of this error. This is a pretty rare case, especially for the client side. But sometimes it can interfere with DNS requests.

So, let’s disable the proxy also and see what happens.

Disabling the proxy on your Windows

  1. Open Settings on your Windows, then go to Network & Internet.
  1. On the left menu, click Proxy.
  2. Under Automatic proxy setup, toggle Automatically detect settings to Off.
  3. Under Manual proxy setup, toggle Use a proxy server to Off.

After disabling the proxy, try reloading the page to check if the error is gone.

Disabling the proxy on your Mac

  1. In System Settings, go to Network.
Network settings mac, connection timed out, connection refused
  1. Select your active connection (Wi-Fi or Ethernet) and click Details.
  2. Now, go to the Proxies tab, and uncheck all the boxes, such as SOCKS Proxy or Auto proxy discovery.
proxy settings mac, ERR_CONNECTION_TIMED_OUT, error connection refused
  1. Click OK to apply the changes.

Now, check if the error is gone, or move to the next solution.

7. Flush your DNS cache

Like browser cache, DNS stores the websites’ IP addresses you’ve browsed previously. If the IP addresses are outdated, they might send you to the wrong address while browsing.

That’s why you need some spring cleaning in your DNS. So, let’s check it on Windows first and then on Mac.

Flush DNS and renew the IP address on Windows:

  1. Open your Command Prompt:
  2. In the Command Prompt window, paste the following command after C:\WINDOWS\system32> and press enter to remove outdated or incorrect DNS entries:
  1. After flushing DNS, paste the following command to release current IP address assigned to your system by the DHCP:
  1. Once that’s done, enter the following command to obtain fresh IP:
  1. Then enter this command to manually set or update DNS servers for troubleshooting or network configuration:
  1. Lastly, reset the Windows Sockets (Winsock) catalog to default settings by the following command:

What you’re doing here is essentially troubleshooting and updating your IP address in your DNS cache.

Once you’ve done this, restart your computer and reload the website to check if the error is there.

Flush DNS and renew IP address on Mac:

  1. Open your Terminal application:
    • Press Command + Space together to open the Spotlight Search.
    • Type Terminal and open the application.
  2. Paste the following command and press enter to reset and restart the mDNSResponder:
  1. And then enter your Password.
  2. Restart your device and reload the page to see if it works.

If you’re still seeing the ERR_CONNECTION_REFUSED error message then go ahead for the next fix.

8. Check your hosts file

Check if the host file is modified. If you have modified the host’s file then you should revert it. It must just be that the website you are trying to access might be blocked on your local hosts file.

Check and edit hosts file on Windows

  1. Open the Search box and type Notepad.
  2. Open it by selecting Run as administrator option.
  3. Then navigate to File and click on Open.
  4. Change the file filter from Text Documents to All Files.
  5. Enter the path below in the file name bar and select the hosts file. This file will show a list of blacklisted websites below the last line, using the hashtag symbol.
  6. If the domain name and the IP address of the targeted website are there, then remove them and click Save.

Now, check if the error is gone.

Check and edit host files on Mac

  1. Again open your Terminal application:
    • Then press Command + Space together to open the Spotlight Search.
    • Type Terminal and open the application.
  2. Enter the following command and write your password to open the hosts file:
  1. Now delete the domain and IP address if it’s listed there.
  2. Then press Command + O to rewrite the hosts file and hit return to confirm the changes.
  3. Lastly, click command + X to close the hosts file.

Restart your Mac and browse the website again to check if the Fix ERR_CONNECTION_REFUSED has yet been solved or not.

9. Contact your ISP provider

If nothing else works, the problem could be with your Internet Service Provider (ISP). Sometimes, ISPs block access to certain websites due to regional restrictions, legal concerns, or their policies. 

So, if the site is on their restricted list, you have to contact your ISP provider and do the following things. 

  1. Contact your ISP’s support.
  2. Explain the error and troubleshooting steps taken.
  3. Ask about any known issues or restrictions.
  4. Request assistance in resolving the connection problem.

Wrapping up

Issues like ERR_CONNECTION_REFUSED can be frustrating, but it’s usually fixable through one or more of these methods. Start with the simpler solutions and work your way through more complex fixes if needed.

However, if you struggle with the advanced parts, you might consider help from a technical professional. They can provide more specific guidance based on your unique situation.

Tired of buying addons for your premium helpdesk?

Start off with a powerful ticketing system that delivers smooth collaboration right out of the box.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Get support insights directly in inbox!
Blog subscribe form
Fluent Support
Best AI-Powered Helpdesk in WordPress