FacebookTwitterLinkedIn

ERR_CONNECTION_REFUSED: 5 Ways to Fix It

How to Fix ERR_CONNECTION_REFUSED Error in Google Chrome

ERR_CONNECTION_REFUSED is a network connection error you may get when trying to visit a website. This article contains several guides to help you fix it.

ERR CONNECTION REFUSED

What Is ERR_CONNECTION_REFUSED?

In Google Chrome, the ERR_CONNECTION_REFUSED error is also known by other variations, including "127.0.0.1 refused to connect," "This site can't be reached," and "localhost refused to connect."

This error doesn't tell you whether the connection issue has something to do with the website you're trying to visit, your Internet connection, web browser, or DNS settings. However, the error code indicates that the server rejected the attempted connection.

What Causes ERR_CONNECTION_REFUSED?

You may experience this error due to several reasons outlined below.

  • The website is down (server-side problem)
  • Outdated browser extensions
  • The server was blocked by Windows Defender Firewall
  • Proxy settings, proxy server issues.
  • Expired web browser cache
  • Obsolete DNS cache
  • Conflicting network settings

How to Fix the ERR_CONNECTION_REFUSED Error

In most cases, this error code is shown due to misconfiguration and technical problems on the client-side. We've compiled a list of proven methods to fix the ERR_CONNECTION_REFUSED error.

Note: Before applying the fixes provided below, check the status of the website to which you can't connect, check if your Internet connection is working, and try restarting your router.

Video Guide on How to Fix ERR_CONNECTION_REFUSED

Table of Contents:

Method 1. Clear the Google Chrome Cache

1. Open Google Chrome.

Click Clear browsing data

2. At the top-right corner, click More, select More tools, and click Clear browsing data.

Select Advanced and select All time

3. Select Advanced.

4. Then, open the Time range drop-down menu and select All time.

Mark the checkboxes next to Cookies and other site data and Cached images and files and click Clear data

5. Then, tick the checkboxes next to Cookies and other site data, and Cached images and files. You might want to keep your Passwords and sign-in data, so we don't recommend selecting it.

6. Click Clear data.

[Back to Table of Contents]

Method 2. Disable Google Chrome Extensions

1. Open Google Chrome.

Select Extensions

2. At the top-right corner, click More, select More tools, and click Extensions.

Disable outdated extensions

3. Then, disable an extension by toggling the slider next to it.

[Back to Table of Contents]

Method 3. Perform a DNS Flush

1. Hold down Windows+R keys to open Run.

Type in CMD in Run

2. In the Run dialog box, type in CMD and hold down Ctrl+Shift+Enter keys to open the elevated Command Prompt.

Run ipconfig /flushdns command

3. In the Command Prompt window, type in ipconfig /flushdns and press the Enter key. Running this command will clear the DNS cache files and reset the DNS resolver cache.

4. Close the Command Prompt.

[Back to Table of Contents]

Method 4. Change Your DNS Server Address

1. Hold down Windows+R keys to open Run.

Type in ncpa.cpl and click OK

2. In the Run dialog box, type in ncpa.cpl and click OK.

Right-click your network adapter and click Properties

3. Right-click your network adapter and click Properties.

Select Internet Protocol Version 4 (TCP/IPv4) and click Properties

4. Select Internet Protocol Version 4 (TCP/IPv4) and click Properties.

Type in Alternative DNS server addresses

5. Tick the Use the following DNS server addresses option.

6. Enter the following addresses (or your preferred DNS addresses):

  • In the Preferred DNS server, type in 1.1.1.1
  • In the Alternate DNS server, type in 1.0.0.1

7. Click OK to save settings.

8. Restart your PC for the changes to take effect.

[Back to Table of Contents]

Method 5. Renew DHCP (Dynamic Host Configuration Protocol) Lease

1. Hold down Windows+R keys to open Run.

Type in CMD in Run and open the elevated Command Prompt

2. In the Run dialog box, type in CMD and hold down Ctrl+Shift+Enter keys to open the elevated Command Prompt.

Run ipconfig /release and ipconfig /renew commands

3. In the Command Prompt window, type in ipconfig /release and press Enter.

4. Then, type in ipconfig /renew and press Enter.

[Back to Table of Contents]

Method 6. Temporarily Disable Windows Defender Firewall

1. Hold down Windows+R keys to open Run.

Type in firewall.cpl and click OK

2. In the Run dialog box, type in firewall.cpl and click OK to open Windows Defender Firewall settings.

Select Turn Windows Defender Firewall on or off

3. Click Turn Windows Defender Firewall on or off.

Turn off Windows Defender Firewall for private and public networks

4. Tick the Turn off Windows Defender Firewall checkboxes for both private and public networks.

5. Click OK.

[Back to Top]

▼ Show Discussion

About the author:

Rimvydas Iliavicius

Rimvydas is a researcher with over four years of experience in the cybersecurity industry. He attended Kaunas University of Technology and graduated with a Master's degree in Translation and Localization of Technical texts. His interests in computers and technology led him to become a versatile author in the IT industry. At PCrisk, he's responsible for writing in-depth how-to articles for Microsoft Windows. Contact Rimvydas Iliavicius.

Our guides are free. However, if you want to support us you can send us a donation.

About PCrisk

PCrisk is a cyber security portal, informing Internet users about the latest digital threats. Our content is provided by security experts and professional malware researchers. Read more about us.

Malware activity

Global malware activity level today:

Medium threat activity

Increased attack rate of infections detected within the last 24 hours.