Err_connection_refused [Chrome, Localhost]

Milan Stanojevic
by Milan Stanojevic
Deputy Editor
0 Comments
Download PDF
Affiliate Disclosure

  • Connecting to websites shouldn't be a need to worry, except for when you have connectivity issues.
  • That would be the case of the Err connection refused issue that we will be discussing below.
  • For more browser-related troubleshooting guides, visit our website's Browser Errors Hub.
  • If your PC needs even more tweaking, check out our Windows 10 Errors Fix page.
laptop browsing cover

Computer errors can cause a lot of problems, and while some errors are harmless, some can be more severe. Users reported the err connection refused error that prevents them from accessing their favorite websites, and today we’re going to show you how to fix this error on Windows 10.

Are you unable to access a website as the err connection refused error prevents you? Start by flashing your DNS via the Command Prompt. That should fix the error immediately. If that’s not the case, change your DNS server to Google’s and give it another go. Alternatively, disable your proxy and check the Search Engine settings.

Find the list of all applicable solutions below.

The solutions will also help you if you are encountering one of the following issues:

  • Err connection refused
  • Err_connection_refused Windows 10
  • Localhost refused to connect Windows 10

How can I fix Err connection refused error?

  1. Try Opera
  2. Use Command Prompt
  3. Change the DNS server
  4. Disable your proxy
  5. Check your search engine settings
  6. Reset your router
  7. Clear your browser’s cache
  8. Turn off Windows Firewall
  9. Disable your antivirus
  10. Check third-party applications
  11. Run Chrome as administrator
  12. Reset Internet Options to default
  13. Use Registry Editor

1. Try Opera

To avoid errors like the err connection refused, we suggest switching to Opera. If you’re looking for a stable and fast browser with a plethora of features and a special focus on privacy and online safety, you just found it.

Not only is it secure and reliable, but you’ll have a wonderful time using it. It is lightweight, looks, and feels very modern, and the customization options are off the charts.

More so, it comes with some neat tools rarely seen in browsers for free,e like a built-in ad-blocker, and a VPN that doesn’t have a daily traffic limit.

All in all, if you want a browser that is both stable and fun to use, look no further than Opera.

Opera

Opera

If you want lighting-fast Internet browsing that doesn't sacrifice privacy or stability, then Opera is what you need.

2. Use Command Prompt

  1. Open Command Prompt as administrator.
    • To do that press Windows Key + X to open the Win + X menu and choose Command Prompt (Admin).
      cmd admin Err connection refused
  2. When Command Prompt starts, enter the following commands:
    • ipconfig/release
    • ipconfig/all
    • ipconfig/flushdns
    • ipconfig/renew
    • netsh int ip set dns
    • netsh winsock reset
  3. After all the commands are executed, close Command Prompt.

Command Prompt is a powerful tool that allows you to quickly perform all sorts of commands on your PC. With it, you can change system settings and fix all sorts of computer problems.

Now you just need to restart your PC and check if the problem is resolved.


3. Change the DNS server

  1. Open Network Connections window.
    • You can do that by pressing Windows Key + X and choosing the Network Connections option.
      network connections Err connection refused error
  2. When Network Connections window opens, locate your connection, right click it and choose Properties from the menu.
  3. Select Internet Protocol Version 4 (TCP/IPv4) and click the Properties button.
  4. Select Use the following DNS server addresses option and enter 8.8.8.8 as Preferred DNS server and 8.8.4.4 as Alternate DNS server.
    • If you want to use OpenDNS instead, you need to enter 208.67.222.222 as Preferred and 208.67.220.220 as Alternate DNS.
  5. After you’re done, click OK to save changes.

In order to access any website on the Internet, you need to connect to the DNS server first.

In most cases, you’ll connect to your ISP’s DNS server, but if your ISP is having some issues with the DNS, you’ll most likely get the err connection refused error in your browser.


Got DNS issues on your PC? Here’s how to fix them like a pro!


4. Disable your proxy

  1. Click the Menu button in the top right corner and choose Settings from the menu.chrome settings Err connection refused
  2. When Settings window opens, click Show advanced settings option.
  3. Scroll down to the Network section and click Change proxy settings button. Now click the LAN settings button.
  4. Local Area Network (LAN) Settings window will appear. Make sure that all options are unchecked.
  5. Save changes.

We showed you how to disable proxy using Google Chrome, but you can also access this menu by following these steps:

  1. Press Windows Key + S and enter internet options.
  2. Select Internet Options from the menu.
  3. Now, go to Connections tab and follow the instructions above.

If you want, you can also disable proxy by using the Settings app. To do that, follow these steps:

  1. Press Windows Key + I to open the Settings app.
  2. Navigate to Network & Internet section and choose Proxy.
  3. Now make sure that Automatically detect settings, Use setup script and Use a proxy server options are disabled.disable proxy windows 10 settings connection refused error in chrome

A Proxy server is useful if you want to protect your privacy online, but a proxy server can sometimes interfere with your connection and it can cause the err connection refused error to appear.  After turning off your proxy, check if the error is fixed.


5. Check your search engine settings

  1. Press the Menu button in the top right corner and choose Settings from the menu.
  2. When the Settings tab opens, scroll down to the Search section and click the Manage search engines button.manage search engines chrome Err connection refused
  3. Make sure that Google is set as a default search engine. If you see any search engines that you don’t recognize, be sure to remove them.

Few users reported that this error appears in Google Chrome because their default search engine was changed. Sometimes third-party applications can change your default search engine in Chrome, thus causing this error to appear.

Users reported that their default search engine was set to Google Desktop 127.0.0.1 for some strange reason, but after making the necessary changes, the issue was resolved.


Want to know why UR browser is so secure? Read our in-depth review to find out!


6. Reset your router

If restarting your router doesn’t fix the problem, you might want to try resetting it to factory defaults. Sometimes your router configuration can interfere with your Internet connection, and in order to fix this problem, you need to reset your router.

To reset your router you need to open your router’s configuration page and click the Reset option. Another way to reset your router is to press and hold the reset button on the device for a few seconds.

Both methods work the same, and you should use the one that you’re most comfortable with. Keep in mind that you’ll need to configure your wireless connection again if you reset your router.

For detailed instructions on how to reset your router, we advise that you check your router’s manual.


7. Clear your browser’s cache

  1. Click the Menu button in the top right corner and choose Settings.
  2. When the Settings tab opens, scroll all the way down and click on Show advanced settings.
  3. Scroll down to the Privacy section and click the Clear browsing data button.
  4. Set Obliterate the following items from to the beginning of time.
  5. Check Cookies and other site and plugin data, Cached images and files and Hosted app data.
  6. Click Clear browsing data.clear Chrome browsing history Err connection refused chrome error
  7. Wait while your browser clears the cache.
  8. After the process is completed, restart your browser and check if the issue is resolved.

When you’re browsing the Internet your browser downloads all sorts of files. Sometimes those files can get corrupted, and that can cause the err connection refused error to appear.


8. Turn off Windows Firewall

  1. Press Windows Key + S and enter firewall. Choose Windows Firewall from a list of results.
  2. Select Turn Windows Firewall on or off from the menu on the left.turn off or on windows defender Err connection refused browser error
  3. Select Turn off Windows Firewall (not recommended) for both Private network settings and Public network settings. Click OK to save changes.disable windows defender firewall Err connection refused browsing error

After turning off your firewall, check if the problem is resolved. If the firewall is causing this problem on your PC, you need to thoroughly check its settings in order to fix the problem.

In addition, you need to check if Chrome is allowed to connect to the Internet. To do that from Windows Firewall, do the following:

  1. Open Windows Firewall.
  2. Select Allow an app or feature through Windows Firewall.allow apps to communicate through firewall Err connection refused in browser
  3. List of applications will now appear. To make changes to the list, you need to click the Change settings button.
  4. Look for Google Chrome on the list. Make sure to check Google Chrome in both Private and Public columns.allow Chrome to communicate trough firewall Err connection refused
  5. Click OK to save changes.

The Firewall is important because it prevents unknown applications from accessing the Internet. However, your firewall can also block your web browser and cause the err connection refused error to appear.

To fix this problem, you need to turn off your firewall client. If you’re not using a third-party firewall, you’ll have to turn off Windows Firewall.

If you are getting this error in some other browser, be sure that the browser is allowed to connect to the Internet.


9. Disable your antivirus

Your antivirus is just as important as your firewall since it will protect you from malicious users and malicious software.

However, your antivirus can sometimes interfere with your Internet connection, and if that happens, you’ll get the err connection refused error.

To fix this problem, you need to temporary disable your antivirus and check if the problem still persists. If disabling your antivirus solves the issue, it means that certain security setting is blocking your browser.

To fix the problem, you need to check your antivirus configuration. If you can’t fix the problem, you might want to consider switching to a different antivirus tool.

Users reported that Norton antivirus was causing this error on their PC, but after removing the tool completely, the issue was fixed.

Another tool that can cause this error to appear is Spyware Doctor, so if you have this tool installed we advise you to remove it and check if that solves the problem.


Your antivirus is interfering with your browser? Try one of these antivirus applications!


10. Check third-party applications

Your installed applications can sometimes interfere with your Internet connection. Users reported that Privoxy tool caused Chrome’s proxy settings to change.

Apparently, if you install this tool you need to run it all the time if you want to access the Internet. To do that, simply enable the option for automatic startup in Privoxy and check if the problem is resolved.

We have to mention that almost any network-related application can interfere with your Internet connection, therefore be sure to check your installed applications. In some cases, you might have to remove certain applications to fix this problem.


11. Run Chrome as administrator

  1. Right-click Chrome and choose Properties from the menu.
  2. Go to the Compatibility tab.
  3. Check Run this program as an administrator.
  4. Click Apply and OK.

If you’re having problems with err connection refused in Google Chrome, you can fix this issue simply by running Chrome as administrator. To do that, locate the Google Chrome shortcut, right-click it and choose Run as administrator option.

If running Chrome as the administrator fixes the issue, you’ll have to run Chrome as an administrator every time. After doing so, Chrome will run with administrative privileges whenever you start it.


12. Reset Internet Options to default

  1. Open Internet Options. To see how to do that check Solution 3 for detailed instructions.
  2. When the Internet Options window opens, go to Advanced tab and click the Reset button.
  3. Select Delete personal settings if you wish and click the Reset button.
  4. Wait for the reset process to finish.

Many of your network settings can be configured via the Internet Options tool, and sometimes by changing these settings, you can cause the err_connection_refused error to appear.

To fix this problem, you need to reset your Internet Options to default.  After resetting Internet Options to default, restart your PC and check if the problem is resolved.


13. Use Registry Editor

  1. Press Windows Key + R and enter regedit.
  2. When Registry Editor opens, in left pane navigate to the following key:
    • HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings
  3. In the left pane, locate ProxyEnable DWORD and double click it.
  4. Change Value Data to 0 and click OK to save changes.proxy enabled dword regedit
  5. Close Registry Editor and check if the problem is resolved.

The err connection refused error can prevent you from accessing certain websites, but we hope that you managed to fix the problem by using one of our solutions.

Few users reported that they fixed the problem with the err connection refused error by making few changes to their registry.

Editing your registry can be potentially dangerous, therefore we recommend that you export your registry and use it as a backup in case anything goes wrong.


Editor’s Note: This post was originally published in May 2019 and has been since revamped and updated in August 2020 for freshness, accuracy, and comprehensiveness.

Was this page helpful?
Thanks for letting us know! You can also help us by leaving a review on MyWOT or Trustpillot.
Get the most from your tech with our daily tips
Tell us why!