Как исправить connection refused connect

java.net.ConnectException Connection refused connect is the most frequent kind of occurring networking exception in Java whenever the software is in client server architecture and trying to make a TCP connection from the client to the server. We need to handle the exception carefully in order to fulfill the communication problem. First

Improve Article

Save Article

  • Read
  • Discuss
  • Improve Article

    Save Article

    java.net.ConnectException: Connection refused: connect is the most frequent kind of occurring networking exception in Java whenever the software is in client-server architecture and trying to make a TCP connection from the client to the server. We need to handle the exception carefully in order to fulfill the communication problem. First, let us see the possible reasons for the occurrence of java.net.ConnectException: Connection refused.

    1. As client and server involved, both should be in a network like LAN or internet. If it is not present, it will throw an exception on the client-side.
    2. If the server is not running. Usually ports like 8080, (for tomcat), 3000 or 4200 (for react/angular), 3306(MySQL), 27017(MongoDB) or occupied by some other agents or totally down i.e. instance not started.
    3. Sometimes a server may be running but not listening on port because of some overridden settings etc.
    4. Usually, for security reasons, the Firewall will be there, and if it is disallowing the communication.
    5. By mistake, the wrong port is mentioned in the port or the random port generation number given.
    6. Connection string information wrong. For example:

    Connection conn = DriverManager.getConnection(“jdbc:mysql://localhost/:3306<dbname>?” + “user=<username>&password=<password>”);

    Implementation: Here we are using MySQL database connectivity and connection info should be of this format. Now let us see the ways to fixing the ways of java.net.ConnectException: Connection refused. Ping the destination host by using the commands as shown below:

    ping <hostname> - to test
    
    ipconfig(for windows)/ifconfig(linux) - to get network configuration
    
    netstat - statistical report

    nslookup - DNS lookup name

    There are tools like “Putty” are available to communicate, and it is a free implementation of Telnet and SSH for Windows and Unix.

    Example 1: 

    Java

    import java.io;

    import java.net.*;

    import java.util.*;

    public class GFG {

        public static void main(String[] args)

        {

            String hostname = "127.0.0.1";

            int port = 80;

            try (Socket socket = new Socket(hostname, port)) {

                InputStream inputStream

                    = socket.getInputStream();

                InputStreamReader inputStreamReader

                    = new InputStreamReader(inputStream);

                int data;

                StringBuilder outputString

                    = new StringBuilder();

                while ((data = inputStreamReader.read())

                       != -1) {

                    outputString.append((char)data);

                }

            }

            catch (IOException ex) {

                System.out.println(

                    "Connection Refused Exception as the given hostname and port are invalid : "

                    + ex.getMessage());

            }

        }

    }

    Output:

    Example 2: MySQL connectivity Check

    Java

    import java.io.*;

    import java.util.*;

    import java.sql.*;

    try {

        Connection con = null;

        String driver = "com.mysql.jdbc.Driver";

        String IPADDRESS = "localhost"

            String url1

        String db = "<your dbname>";

        String dbUser = "<username>";

        String dbPasswd = "<password>";

        Class.forName(driver).newInstance();

        con = DriverManager.getConnection(url1 + db, dbUser,

                                          dbPasswd);

        System.out.println("Database Connection Established");

    }

    catch (IOException ex) {

        System.out.println(

            "Connection Refused Exception as the given hostname and port are invalid : "

            + ex.getMessage());

    }

    Similarly, for other DB, we need to specify the correct port number i.e. 27017 for MongoDB be it in case of SSL (Secure socket layer) is there, prior checks of Firewall need to be checked and hence via coding we can suggest the solutions to overcome the exception 

    Conclusion: As readymade commands like ping, telnet, etc are available and tools like putty are available, we can check the connectivity information and overcome the exception.

    In a digital world hooked on instant gratification, one of the last things you want to experience when browsing is an error message, such as ERR_CONNECTION_REFUSED. This can be incredibly frustrating, and may even be a sign that something serious has gone wrong.

    For average users, the really confusing errors are the ones where it can sometimes hard to distinguish between a problem with your WordPress site and something else, such as a networking or browser issue.

    The “ERR_CONNECTION_REFUSED” message is an especially common and usually non-WordPress site related error message you’ll sometimes see in Chrome. Fortunately, it’s relatively easy to pinpoint the cause of this problem. In this post, we’ll explain what the message means and how to fix it. Typically this involves the following steps:

    1. Check to see whether the page itself has gone down.
    2. Restart your router.
    3. Clear your browser’s cache.
    4. Assess your proxy settings and adjust them as needed.
    5. Temporarily disable antivirus and firewall software.
    6. Flush your DNS cache.
    7. Change your DNS address.
    8. Disable any outdated Chrome extensions.
    9. Reinstall your Chrome browser.

    But first, let’s take a deeper look into what this error actually means.

    Prefer to watch the video version?

    What Is the ERR_CONNECTION_REFUSED Error?

    Unfortunately, encountering errors comes hand-in-hand with using the internet. There are hundreds of possibilities, from the white screen of death to the classic 404 error , the ERR_CONNECTION_TIMED_OUT error or the ERR_CACHE_MISS. Trust us, our support team deals with all sorts of WordPress errors on a daily basis. So this is nothing new for us.

    What Are the Different Variations of the ERR_CONNECTION_REFUSED Error?

    The ERR_CONNECTION_REFUSED Error appears differently depending on the browser. Here are some examples of the forms that this error can take:

    • This site can’t be reached
    • Unable to connect
    • Hmmm…can’t reach this page

    Google Chrome (This site can’t be reached)

    In Google Chrome users may also be familiar with the ERR_CONNECTION_REFUSED page. You will see a message saying:

    This site can’t be reached or This webpage is not available.

    ERR_CONNECTION_REFUSED error in Google Chrome

    ERR_CONNECTION_REFUSED error in Google Chrome

    When you visit a website using Google Chrome and encounter this message, it means that your attempt to connect was refused. This error code also appears in other browsers, albeit in different forms.

    A similar message that may also appear here is the DNS_PROBE_FINISHED_NXDOMAIN error, which is a DNS error which signals that the requested domain name does not exist.

    Mozilla Firefox (Unable to connect Error)

    In Mozilla Firefox it will simply show as Unable to connect.

    Firefox can’t establish a connection to the server at domain.com.

    Unable to connect error in Mozilla Firefox

    Unable to connect Error in Mozilla Firefox

    Microsoft Edge (Hmmm…can’t reach this page Error)

    In Microsoft Edge, it will simply show as Hmmm… can’t reach this page. Which isn’t very helpful.

    Make sure you’ve got the right web address: domain.com.

    Microsoft Edge Hmmm...can't reach this page Error

    Microsoft Edge Hmmm…can’t reach this page Error

    The ERR_CONNECTION_REFUSED error is sometimes caused by a server-side problem, rather than an issue with your individual attempt at connection. It’s usually nothing serious, and can simply be the result of incorrect firewall or server settings. However, it can also be a sign that something more significant has gone wrong – such as a malware attack, or unexpected downtime. An unreliable internet connection can also contribute.

    As with most error messages, ERR_CONNECTION_REFUSED lets you know that something has gone wrong, without being kind enough to tell you why it’s happened. This means it’s up to you to find and resolve the root issue (if possible).

    How to Fix the ERR_CONNECTION_REFUSED Error in Chrome (9 Possible Solutions)

    Although the range of potential causes can make troubleshooting tricky, it is possible to fix the ERR_CONNECTION_REFUSED error. Let’s walk through nine steps you can take, starting with the ones most likely to provide an answer.

    1. Check the Status of the Website

    Your first port of call should be to check the status of the website you’re trying to access. As we’ve already mentioned, the ERR_CONNECTION_REFUSED error can sometimes be caused by the site’s server, rather than your own internet connection.

    A simple way to check whether this is the case is to visit another web page. If the error message occurs again, the problem most likely originates with your connection. If the second page loads correctly, however, the first site was probably at fault.

    You can also use Down For Everyone Or Just Me:

    Down for Everyone or Just Me?

    Down for Everyone or Just Me?

    Enter the address of the non-functioning page, and click on Or just me?. This site will then assess whether the page is offline (down), or online (up). Unfortunately, when a page is down, the only thing you can do is wait for it to be fixed. However, if the page is up and is still not loading for you, it’s time to do some further troubleshooting.

    2. Restart Your Router

    As a tried-and-tested method for fixing many internet-related issues, your next step will be to try ‘turning it off and back on again’. Restarting your home or office router doesn’t come with a 100% success guarantee. However, the process takes just a few minutes, so it’s more than worth a try when you’re dealing with a potential connection issue.

    To do this, disconnect the power supply to your router. You’ll then need to wait for about 30 seconds, before plugging it back in. Once the router has booted up again, try to access the page that returned an error. If it loads, then you’re good to go. If not, there’s likely another cause at play.

    3. Clear Your Browser’s Cache

    Like any good internet browser, Chrome will store information in its cache on your computer or device. This includes your browsing history, saved login data, and cookies – all of which are recorded in order to load the relevant pages more quickly the next time they’re visited.

    Although they’re useful, caches can cause numerous issues when they become outdated. This is because the cached version of a page is likely to no longer match the current, live version. Fortunately, this problem is easily solved by clearing your cache.

    But before you do that, you can easily check to see if it’s a browser cache issue by first opening up your browser in incognito mode. Or you can try a different browser. If you’re still seeing the error, then you will want to proceed with clearing your cache.

    To do so, begin by opening up Chrome’s primary menu (in the top-right corner of your browser window). From there, select More Tools: You can then click on Clear browser data.

    Chrome clear browsing data

    Chrome clear browsing data

    On the resulting page, you’ll need to make sure that all listed file categories are selected. If they aren’t, Chrome won’t be able to empty the entire cache. Instead, it will simply remove the most recent entries, which won’t result in the desired effect:

    Clear browsing data

    Clear browsing data

    An alternative method of completing this process is to enter the following URL into your address bar:

    chrome://settings/clearBrowserData

    The resulting screen should grant you access to the same options we’ve outlined above. Here are some other helpful links for clearing cache.

    • How to Force Refresh a Single Page for All Browsers
    • How to Clear Browser Cache for Google Chrome
    • How to Clear Browser Cache for Mozilla Firefox
    • How to Clear Browser Cache for Safari
    • How to Clear Browser Cache for Internet Explorer
    • How to Clear Browser Cache for Microsoft Edge
    • How to Clear Browser Cache for Opera

    4. Assess Your Proxy Settings and Adjust Them as Needed

    With security threats consistently on the rise, it’s no wonder that many people are now using individual solutions to protect their sensitive data. A popular way of doing this is through the use of proxy servers.

    A proxy lets you go online under a different IP address, and acts as an intermediary between your browser and the websites you visit. As well as keeping your IP address private, it can also help to filter cache data and server communications.

    Just as with caching, a proxy server can be useful, but it can also cause the ERR_CONNECTION_REFUSED message. For example, a web server might reject the IP address attached to a proxy server, and then reject the actual connection as a result.

    It’s also possible that the proxy is offline, or incorrectly configured. In short, if the error message in question occurs, it’s worth checking out your proxy settings.

    Chrome actually has its own proxy section, which can make this step a particularly simple process. After all, you won’t need to spend any time searching for the correct tools in your browser.

    To get started, access the Settings menu in your Chrome browser. This will open up the complete menu of options. Under the System section (you’ll need to click Advanced at the bottom to see this), you should find an entry titled Open proxy settings. By selecting it, you’ll be taken to the corresponding menu:

    Open Proxy Settings in Chrome

    Open Proxy Settings in Chrome

    Your next step depends on the system you’re currently using. Windows users will want to click on LAN Settings, and uncheck the Use proxy server for LAN option. If you’re a Mac user, you should immediately find yourself in the relevant menu. You’ll then have to uncheck all selectable proxy protocols, and check to see if the ERR_CONNECTION_REFUSED message has been resolved.

    Uncheck proxies on Mac

    Uncheck proxies on Mac

    5. Disable Firewall and Antivirus Software Temporarily

    Firewalls and antivirus software are intended to protect users and their systems. They scan your device regularly, and automatically block any suspicious activity. You may start to notice a recurring theme here, however, since (much like with caching and proxy servers) this type of advanced security can at times lead to connection issues.

    This is because firewalls can often block pages they don’t need to, or reject content that is completely safe. To check whether this is the case for you, try disabling your firewall and antivirus programs. Of course, this is only advised if you know for sure that the site you’re intending to visit is safe.

    Additionally, you should only disable this kind of software temporarily. Switch it back on after you’ve finished checking to see whether the error has been resolved, so you don’t become vulnerable to attacks. If you repeatedly encounter errors because of your firewall or antivirus software, you may want to consider changing what you’re using.

    6. Clear Your DNS Cache

    As somewhat of an extension to an earlier troubleshooting step, your next task will be to clear your DNS cache. Although most people are aware that their browser creates a cache, not as many know that their operating system does the same thing.

    For example, your DNS cache contains all of the temporary entries for pages you’ve accessed with your browser. These entries store key information related to the domain names and addresses of the pages you’ve visited.

    The purpose of this feature is similar to that of other types of caches. It accelerates the loading process, as it eliminates the need to contact a site’s DNS server repeatedly. This will save you time in the long run. However, you may occasionally see some short-term issues.

    If a stored entry no longer matches the current version of the website it refers to, technical errors like the ERR_CONNECTION_REFUSED message are not unusual. Fortunately, clearing your DNS cache is a quick and easy solution.

    Again, how you’ll do this will depend on your operating system.

    Windows

    Launch the start menu by pressing the Windows key and search for “CMD.” This should return the command prompt.

    command prompt windows

    Command Prompt in Windows

    In the command prompt run the following command:

    ipconfig /flushdns

    ipconfig flush dns

    ipconfig /flushdns

    You will then see a confirmation that it has successfully flushed the DNS resolver cache.

    flushed dns resolver cache

    Flushed DNS resolver cache

    For the purposes of this article, we’ll talk you through the process when you’re using a Mac – although you’ll be able to find numerous helpful resources online if you’re a Windows fan.

    Mac

    On a Mac, you’ll need to do the following:

    Click “Go” up in the toolbar and then “Utilities.” (Shift-Command-U)

    Mac utilities

    Mac utilities

    Open the Terminal.

    Mac terminal

    Mac terminal

    Run the following command. You will need administrator access to do this.

    sudo killall -HUP mDNSResponder && echo macOS DNS Cache Reset

    Clear DNS cache Mac

    Clear DNS cache Mac

    When you’ve done that, try accessing the problem site again. Hopefully, if you’ve followed all of our advice, it should be working by now. If not, your DNS may require some more attention.

    7. Change Your DNS Address

    As we discussed above, an outdated DNS cache entry is a potential source of issues like the ERR_CONNECTION_REFUSED message. However, the DNS address itself can also be responsible for these kinds of problems. This is because it can often become overloaded, or even go completely offline.

    In the majority of cases, your DNS server address is automatically obtained from your internet provider. However, you can also change it if required. How you’ll do this will again depend on the operating system you’re using.

    Let’s explore how Mac users can complete this process. First, you’ll need to open up System Preferences. On the resulting screen, select the option marked Network. You’ll then need to click on Advanced:

    Mac network advanced

    Mac network advanced

    From there, select the DNS option found at the top of the screen. To add a new DNS server, click on the + button. To edit an existing DNS server instead, double-click on the DNS IP address you wish to adjust:

    Network DNS

    Network DNS

    You can try temporarily changing these to a public DNS server, such as Google or Cloudflare.

    • Some prefer to use Google’s public DNS (8.8.8.8 and 8.8.4.4) long-term due to them sometimes being more reliable.
    • Cloudflare also offers its secure and blazing fast free DNS (1.1.1.1 and 1.0.0.1).

    Tip: If you’re already using a free DNS server and having issues, removing it and defaulting back to your ISP’s DNS servers also sometimes fix things. Google and Cloudflare aren’t perfect 100% of the time and there have been a few instances where we’ve noticed switching back has resolved the issue.

    You can then attempt to access the site again – and cross your fingers.

    8. Disable Any Chrome Extensions

    There’s no denying that installing extensions often contributes to a more well-rounded Google Chrome experience. The many extensions on offer can add key features, and even help to automate complex processes.

    However, a large number of the extensions available for Google Chrome are not developed by the browser’s developers. Instead, they’re usually created by third parties. This can mean there’s no real guarantee they’ll work as you intended, or that they will be correctly updated over time.

    Incorrect or outdated extensions are likely to cause numerous issues – including the ERR_CONNECTION_REFUSED error message. For this reason, it’s important to regularly audit the extensions that are attached to your browser.

    To do that, first open the Extensions menu in your Chrome browser. You can then begin to assess each of your installed extensions in turn. Start by questioning whether you actually need each one. If an extension is no longer necessary, you can simply remove it.

    Next, find out when each extension that you want to keep was last updated. Ideally, it should have been updated within the last three months. Anything longer than that could be a sign that the extension is being neglected by its developers. If possible, you’ll want to remove those extensions and replace them with newer alternatives.

    Of course, new (and fully updated) extensions can still sometimes cause problems. If you suspect that this is the case, begin by disabling all of your attached extensions. If the site you’ve been trying to access loads after doing this, you’ll know that at least one of them is at fault. You can then reactivate one extension at a time, until you’ve honed in on the problem software.

    9. Reinstall the Chrome Browser

    As with any other application, Chrome itself is never going to be completely bug-free. Your installation of the browser can contain various issues, especially if it hasn’t been updated in a while. What’s more, problems between your browser and operating system are surprisingly common.

    As a result, sometimes the only solution is to completely reinstall Chrome. You can do this by removing the current installation from your device. You can then download the most recent version of the browser by visiting the official Chrome website.

    What to Do If None of These Solutions Work

    If none of the solutions we’ve walked you through fixes the ERR_CONNECTION_REFUSED message, it’s usually a sign that something more serious has gone wrong on the server-side (in other words, with the website itself).

    Unfortunately, in this scenario, the only thing you can do is be patient. It’s likely that the website’s owners are working hard to resolve any issues, and it will resume business as usual before too long.

    If accessing the site is a matter of urgency, you could try reaching out to its owners directly. There are numerous ways to do this, although social media and email are particularly effective – and unlikely to be affected by any website downtime.

    Explain the problem you’re facing, and mention that you’ve tried several solutions to no avail. Hopefully, the team behind the website should get back to you and discuss the best course of action. You may even be doing them a favor, if you happen to make them aware of an issue they didn’t know was preventing access to their site.

    If you’re a Kinsta client and it’s your own WordPress site that is having the issues, feel free to reach out to our support team. We are here to help 24/7.
    Browser errors are never fun. 😩 Here are a few tips on how to fix the stubborn ERR_CONNECTION_REFUSED error.Click to Tweet

    Summary

    Although connection errors are endlessly frustrating, it’s important to remember that they can often be fixed. Your first port of call should always be to check whether the issue lies with the web page itself. If the problem is with your own connection, on the other hand, you’ll need to put in a little work to get things back up and running.

    To try and resolve the ERR_CONNECTION_REFUSED message, you can:

    1. Check to see whether the page itself has gone down.
    2. Restart your router.
    3. Clear your browser’s cache.
    4. Assess your proxy settings and adjust them as needed.
    5. Temporarily disable antivirus and firewall software.
    6. Flush your DNS cache.
    7. Change your DNS address.
    8. Disable any outdated Chrome extensions.
    9. Reinstall your Chrome browser.

    Do you have any more questions about this particular error message, or is there another commonly-encountered problem that you’d like us to explore? Let us know in the comments section below!


    Get all your applications, databases and WordPress sites online and under one roof. Our feature-packed, high-performance cloud platform includes:

    • Easy setup and management in the MyKinsta dashboard
    • 24/7 expert support
    • The best Google Cloud Platform hardware and network, powered by Kubernetes for maximum scalability
    • An enterprise-level Cloudflare integration for speed and security
    • Global audience reach with up to 35 data centers and 275 PoPs worldwide

    Test it yourself with $20 off your first month of Application Hosting or Database Hosting. Explore our plans or talk to sales to find your best fit.

    In a digital world hooked on instant gratification, one of the last things you want to experience when browsing is an error message, such as ERR_CONNECTION_REFUSED. This can be incredibly frustrating, and may even be a sign that something serious has gone wrong.

    For average users, the really confusing errors are the ones where it can sometimes hard to distinguish between a problem with your WordPress site and something else, such as a networking or browser issue.

    The “ERR_CONNECTION_REFUSED” message is an especially common and usually non-WordPress site related error message you’ll sometimes see in Chrome. Fortunately, it’s relatively easy to pinpoint the cause of this problem. In this post, we’ll explain what the message means and how to fix it. Typically this involves the following steps:

    1. Check to see whether the page itself has gone down.
    2. Restart your router.
    3. Clear your browser’s cache.
    4. Assess your proxy settings and adjust them as needed.
    5. Temporarily disable antivirus and firewall software.
    6. Flush your DNS cache.
    7. Change your DNS address.
    8. Disable any outdated Chrome extensions.
    9. Reinstall your Chrome browser.

    But first, let’s take a deeper look into what this error actually means.

    Prefer to watch the video version?

    What Is the ERR_CONNECTION_REFUSED Error?

    Unfortunately, encountering errors comes hand-in-hand with using the internet. There are hundreds of possibilities, from the white screen of death to the classic 404 error , the ERR_CONNECTION_TIMED_OUT error or the ERR_CACHE_MISS. Trust us, our support team deals with all sorts of WordPress errors on a daily basis. So this is nothing new for us.

    What Are the Different Variations of the ERR_CONNECTION_REFUSED Error?

    The ERR_CONNECTION_REFUSED Error appears differently depending on the browser. Here are some examples of the forms that this error can take:

    • This site can’t be reached
    • Unable to connect
    • Hmmm…can’t reach this page

    Google Chrome (This site can’t be reached)

    In Google Chrome users may also be familiar with the ERR_CONNECTION_REFUSED page. You will see a message saying:

    This site can’t be reached or This webpage is not available.

    ERR_CONNECTION_REFUSED error in Google Chrome

    ERR_CONNECTION_REFUSED error in Google Chrome

    When you visit a website using Google Chrome and encounter this message, it means that your attempt to connect was refused. This error code also appears in other browsers, albeit in different forms.

    A similar message that may also appear here is the DNS_PROBE_FINISHED_NXDOMAIN error, which is a DNS error which signals that the requested domain name does not exist.

    Mozilla Firefox (Unable to connect Error)

    In Mozilla Firefox it will simply show as Unable to connect.

    Firefox can’t establish a connection to the server at domain.com.

    Unable to connect error in Mozilla Firefox

    Unable to connect Error in Mozilla Firefox

    Microsoft Edge (Hmmm…can’t reach this page Error)

    In Microsoft Edge, it will simply show as Hmmm… can’t reach this page. Which isn’t very helpful.

    Make sure you’ve got the right web address: domain.com.

    Microsoft Edge Hmmm...can't reach this page Error

    Microsoft Edge Hmmm…can’t reach this page Error

    The ERR_CONNECTION_REFUSED error is sometimes caused by a server-side problem, rather than an issue with your individual attempt at connection. It’s usually nothing serious, and can simply be the result of incorrect firewall or server settings. However, it can also be a sign that something more significant has gone wrong – such as a malware attack, or unexpected downtime. An unreliable internet connection can also contribute.

    As with most error messages, ERR_CONNECTION_REFUSED lets you know that something has gone wrong, without being kind enough to tell you why it’s happened. This means it’s up to you to find and resolve the root issue (if possible).

    How to Fix the ERR_CONNECTION_REFUSED Error in Chrome (9 Possible Solutions)

    Although the range of potential causes can make troubleshooting tricky, it is possible to fix the ERR_CONNECTION_REFUSED error. Let’s walk through nine steps you can take, starting with the ones most likely to provide an answer.

    1. Check the Status of the Website

    Your first port of call should be to check the status of the website you’re trying to access. As we’ve already mentioned, the ERR_CONNECTION_REFUSED error can sometimes be caused by the site’s server, rather than your own internet connection.

    A simple way to check whether this is the case is to visit another web page. If the error message occurs again, the problem most likely originates with your connection. If the second page loads correctly, however, the first site was probably at fault.

    You can also use Down For Everyone Or Just Me:

    Down for Everyone or Just Me?

    Down for Everyone or Just Me?

    Enter the address of the non-functioning page, and click on Or just me?. This site will then assess whether the page is offline (down), or online (up). Unfortunately, when a page is down, the only thing you can do is wait for it to be fixed. However, if the page is up and is still not loading for you, it’s time to do some further troubleshooting.

    2. Restart Your Router

    As a tried-and-tested method for fixing many internet-related issues, your next step will be to try ‘turning it off and back on again’. Restarting your home or office router doesn’t come with a 100% success guarantee. However, the process takes just a few minutes, so it’s more than worth a try when you’re dealing with a potential connection issue.

    To do this, disconnect the power supply to your router. You’ll then need to wait for about 30 seconds, before plugging it back in. Once the router has booted up again, try to access the page that returned an error. If it loads, then you’re good to go. If not, there’s likely another cause at play.

    3. Clear Your Browser’s Cache

    Like any good internet browser, Chrome will store information in its cache on your computer or device. This includes your browsing history, saved login data, and cookies – all of which are recorded in order to load the relevant pages more quickly the next time they’re visited.

    Although they’re useful, caches can cause numerous issues when they become outdated. This is because the cached version of a page is likely to no longer match the current, live version. Fortunately, this problem is easily solved by clearing your cache.

    But before you do that, you can easily check to see if it’s a browser cache issue by first opening up your browser in incognito mode. Or you can try a different browser. If you’re still seeing the error, then you will want to proceed with clearing your cache.

    To do so, begin by opening up Chrome’s primary menu (in the top-right corner of your browser window). From there, select More Tools: You can then click on Clear browser data.

    Chrome clear browsing data

    Chrome clear browsing data

    On the resulting page, you’ll need to make sure that all listed file categories are selected. If they aren’t, Chrome won’t be able to empty the entire cache. Instead, it will simply remove the most recent entries, which won’t result in the desired effect:

    Clear browsing data

    Clear browsing data

    An alternative method of completing this process is to enter the following URL into your address bar:

    chrome://settings/clearBrowserData

    The resulting screen should grant you access to the same options we’ve outlined above. Here are some other helpful links for clearing cache.

    • How to Force Refresh a Single Page for All Browsers
    • How to Clear Browser Cache for Google Chrome
    • How to Clear Browser Cache for Mozilla Firefox
    • How to Clear Browser Cache for Safari
    • How to Clear Browser Cache for Internet Explorer
    • How to Clear Browser Cache for Microsoft Edge
    • How to Clear Browser Cache for Opera

    4. Assess Your Proxy Settings and Adjust Them as Needed

    With security threats consistently on the rise, it’s no wonder that many people are now using individual solutions to protect their sensitive data. A popular way of doing this is through the use of proxy servers.

    A proxy lets you go online under a different IP address, and acts as an intermediary between your browser and the websites you visit. As well as keeping your IP address private, it can also help to filter cache data and server communications.

    Just as with caching, a proxy server can be useful, but it can also cause the ERR_CONNECTION_REFUSED message. For example, a web server might reject the IP address attached to a proxy server, and then reject the actual connection as a result.

    It’s also possible that the proxy is offline, or incorrectly configured. In short, if the error message in question occurs, it’s worth checking out your proxy settings.

    Chrome actually has its own proxy section, which can make this step a particularly simple process. After all, you won’t need to spend any time searching for the correct tools in your browser.

    To get started, access the Settings menu in your Chrome browser. This will open up the complete menu of options. Under the System section (you’ll need to click Advanced at the bottom to see this), you should find an entry titled Open proxy settings. By selecting it, you’ll be taken to the corresponding menu:

    Open Proxy Settings in Chrome

    Open Proxy Settings in Chrome

    Your next step depends on the system you’re currently using. Windows users will want to click on LAN Settings, and uncheck the Use proxy server for LAN option. If you’re a Mac user, you should immediately find yourself in the relevant menu. You’ll then have to uncheck all selectable proxy protocols, and check to see if the ERR_CONNECTION_REFUSED message has been resolved.

    Uncheck proxies on Mac

    Uncheck proxies on Mac

    5. Disable Firewall and Antivirus Software Temporarily

    Firewalls and antivirus software are intended to protect users and their systems. They scan your device regularly, and automatically block any suspicious activity. You may start to notice a recurring theme here, however, since (much like with caching and proxy servers) this type of advanced security can at times lead to connection issues.

    This is because firewalls can often block pages they don’t need to, or reject content that is completely safe. To check whether this is the case for you, try disabling your firewall and antivirus programs. Of course, this is only advised if you know for sure that the site you’re intending to visit is safe.

    Additionally, you should only disable this kind of software temporarily. Switch it back on after you’ve finished checking to see whether the error has been resolved, so you don’t become vulnerable to attacks. If you repeatedly encounter errors because of your firewall or antivirus software, you may want to consider changing what you’re using.

    6. Clear Your DNS Cache

    As somewhat of an extension to an earlier troubleshooting step, your next task will be to clear your DNS cache. Although most people are aware that their browser creates a cache, not as many know that their operating system does the same thing.

    For example, your DNS cache contains all of the temporary entries for pages you’ve accessed with your browser. These entries store key information related to the domain names and addresses of the pages you’ve visited.

    The purpose of this feature is similar to that of other types of caches. It accelerates the loading process, as it eliminates the need to contact a site’s DNS server repeatedly. This will save you time in the long run. However, you may occasionally see some short-term issues.

    If a stored entry no longer matches the current version of the website it refers to, technical errors like the ERR_CONNECTION_REFUSED message are not unusual. Fortunately, clearing your DNS cache is a quick and easy solution.

    Again, how you’ll do this will depend on your operating system.

    Windows

    Launch the start menu by pressing the Windows key and search for “CMD.” This should return the command prompt.

    command prompt windows

    Command Prompt in Windows

    In the command prompt run the following command:

    ipconfig /flushdns

    ipconfig flush dns

    ipconfig /flushdns

    You will then see a confirmation that it has successfully flushed the DNS resolver cache.

    flushed dns resolver cache

    Flushed DNS resolver cache

    For the purposes of this article, we’ll talk you through the process when you’re using a Mac – although you’ll be able to find numerous helpful resources online if you’re a Windows fan.

    Mac

    On a Mac, you’ll need to do the following:

    Click “Go” up in the toolbar and then “Utilities.” (Shift-Command-U)

    Mac utilities

    Mac utilities

    Open the Terminal.

    Mac terminal

    Mac terminal

    Run the following command. You will need administrator access to do this.

    sudo killall -HUP mDNSResponder && echo macOS DNS Cache Reset

    Clear DNS cache Mac

    Clear DNS cache Mac

    When you’ve done that, try accessing the problem site again. Hopefully, if you’ve followed all of our advice, it should be working by now. If not, your DNS may require some more attention.

    7. Change Your DNS Address

    As we discussed above, an outdated DNS cache entry is a potential source of issues like the ERR_CONNECTION_REFUSED message. However, the DNS address itself can also be responsible for these kinds of problems. This is because it can often become overloaded, or even go completely offline.

    In the majority of cases, your DNS server address is automatically obtained from your internet provider. However, you can also change it if required. How you’ll do this will again depend on the operating system you’re using.

    Let’s explore how Mac users can complete this process. First, you’ll need to open up System Preferences. On the resulting screen, select the option marked Network. You’ll then need to click on Advanced:

    Mac network advanced

    Mac network advanced

    From there, select the DNS option found at the top of the screen. To add a new DNS server, click on the + button. To edit an existing DNS server instead, double-click on the DNS IP address you wish to adjust:

    Network DNS

    Network DNS

    You can try temporarily changing these to a public DNS server, such as Google or Cloudflare.

    • Some prefer to use Google’s public DNS (8.8.8.8 and 8.8.4.4) long-term due to them sometimes being more reliable.
    • Cloudflare also offers its secure and blazing fast free DNS (1.1.1.1 and 1.0.0.1).

    Tip: If you’re already using a free DNS server and having issues, removing it and defaulting back to your ISP’s DNS servers also sometimes fix things. Google and Cloudflare aren’t perfect 100% of the time and there have been a few instances where we’ve noticed switching back has resolved the issue.

    You can then attempt to access the site again – and cross your fingers.

    8. Disable Any Chrome Extensions

    There’s no denying that installing extensions often contributes to a more well-rounded Google Chrome experience. The many extensions on offer can add key features, and even help to automate complex processes.

    However, a large number of the extensions available for Google Chrome are not developed by the browser’s developers. Instead, they’re usually created by third parties. This can mean there’s no real guarantee they’ll work as you intended, or that they will be correctly updated over time.

    Incorrect or outdated extensions are likely to cause numerous issues – including the ERR_CONNECTION_REFUSED error message. For this reason, it’s important to regularly audit the extensions that are attached to your browser.

    To do that, first open the Extensions menu in your Chrome browser. You can then begin to assess each of your installed extensions in turn. Start by questioning whether you actually need each one. If an extension is no longer necessary, you can simply remove it.

    Next, find out when each extension that you want to keep was last updated. Ideally, it should have been updated within the last three months. Anything longer than that could be a sign that the extension is being neglected by its developers. If possible, you’ll want to remove those extensions and replace them with newer alternatives.

    Of course, new (and fully updated) extensions can still sometimes cause problems. If you suspect that this is the case, begin by disabling all of your attached extensions. If the site you’ve been trying to access loads after doing this, you’ll know that at least one of them is at fault. You can then reactivate one extension at a time, until you’ve honed in on the problem software.

    9. Reinstall the Chrome Browser

    As with any other application, Chrome itself is never going to be completely bug-free. Your installation of the browser can contain various issues, especially if it hasn’t been updated in a while. What’s more, problems between your browser and operating system are surprisingly common.

    As a result, sometimes the only solution is to completely reinstall Chrome. You can do this by removing the current installation from your device. You can then download the most recent version of the browser by visiting the official Chrome website.

    What to Do If None of These Solutions Work

    If none of the solutions we’ve walked you through fixes the ERR_CONNECTION_REFUSED message, it’s usually a sign that something more serious has gone wrong on the server-side (in other words, with the website itself).

    Unfortunately, in this scenario, the only thing you can do is be patient. It’s likely that the website’s owners are working hard to resolve any issues, and it will resume business as usual before too long.

    If accessing the site is a matter of urgency, you could try reaching out to its owners directly. There are numerous ways to do this, although social media and email are particularly effective – and unlikely to be affected by any website downtime.

    Explain the problem you’re facing, and mention that you’ve tried several solutions to no avail. Hopefully, the team behind the website should get back to you and discuss the best course of action. You may even be doing them a favor, if you happen to make them aware of an issue they didn’t know was preventing access to their site.

    If you’re a Kinsta client and it’s your own WordPress site that is having the issues, feel free to reach out to our support team. We are here to help 24/7.
    Browser errors are never fun. 😩 Here are a few tips on how to fix the stubborn ERR_CONNECTION_REFUSED error.Click to Tweet

    Summary

    Although connection errors are endlessly frustrating, it’s important to remember that they can often be fixed. Your first port of call should always be to check whether the issue lies with the web page itself. If the problem is with your own connection, on the other hand, you’ll need to put in a little work to get things back up and running.

    To try and resolve the ERR_CONNECTION_REFUSED message, you can:

    1. Check to see whether the page itself has gone down.
    2. Restart your router.
    3. Clear your browser’s cache.
    4. Assess your proxy settings and adjust them as needed.
    5. Temporarily disable antivirus and firewall software.
    6. Flush your DNS cache.
    7. Change your DNS address.
    8. Disable any outdated Chrome extensions.
    9. Reinstall your Chrome browser.

    Do you have any more questions about this particular error message, or is there another commonly-encountered problem that you’d like us to explore? Let us know in the comments section below!


    Get all your applications, databases and WordPress sites online and under one roof. Our feature-packed, high-performance cloud platform includes:

    • Easy setup and management in the MyKinsta dashboard
    • 24/7 expert support
    • The best Google Cloud Platform hardware and network, powered by Kubernetes for maximum scalability
    • An enterprise-level Cloudflare integration for speed and security
    • Global audience reach with up to 35 data centers and 275 PoPs worldwide

    Test it yourself with $20 off your first month of Application Hosting or Database Hosting. Explore our plans or talk to sales to find your best fit.

    I’m trying to write a server program in C,
    using another client, I get this error when I try to connect through port 2080 for example.

    connection refused
    

    What can be the reasons of this error?

    ROMANIA_engineer's user avatar

    asked Feb 25, 2010 at 10:55

    Zenet's user avatar

    5

    There could be many reasons, but the most common are:

    1. The port is not open on the destination machine.

    2. The port is open on the destination machine, but its backlog of pending connections is full.

    3. A firewall between the client and server is blocking access (also check local firewalls).

    After checking for firewalls and that the port is open, use telnet to connect to the ip/port to test connectivity. This removes any potential issues from your application.

    Remy Lebeau's user avatar

    Remy Lebeau

    536k30 gold badges444 silver badges750 bronze badges

    answered Feb 25, 2010 at 11:02

    a'r's user avatar

    a’ra’r

    35.3k7 gold badges65 silver badges67 bronze badges

    13

    The error means the OS of the listening socket recognized the inbound connection request but chose to intentionally reject it.

    Assuming an intermediate firewall is not getting in the way, there are only two reasons (that I know of) for the OS to reject an inbound connection request. One reason has already been mentioned several times — the listening port being connected to is not open.

    There is another reason that has not been mentioned yet — the listening port is actually open and actively being used, but its backlog of queued inbound connection requests has reached its maximum so there is no room available for the inbound connection request to be queued at that moment. The server code has not called accept() enough times yet to finish clearing out available slots for new queue items.

    Wait a moment or so and try the connection again. Unfortunately, there is no way to differentiate between «the port is not open at all» and «the port is open but too busy right now». They both use the same generic error code.

    Josh Darnell's user avatar

    Josh Darnell

    11.2k9 gold badges37 silver badges65 bronze badges

    answered Mar 2, 2010 at 8:37

    Remy Lebeau's user avatar

    Remy LebeauRemy Lebeau

    536k30 gold badges444 silver badges750 bronze badges

    5

    If you try to open a TCP connection to another host and see the error «Connection refused,» it means that

    1. You sent a TCP SYN packet to the other host.
    2. Then you received a TCP RST packet in reply.

    RST is a bit on the TCP packet which indicates that the connection should be reset. Usually it means that the other host has received your connection attempt and is actively refusing your TCP connection, but sometimes an intervening firewall may block your TCP SYN packet and send a TCP RST back to you.

    See https://www.rfc-editor.org/rfc/rfc793 page 69:

    SYN-RECEIVED STATE

    If the RST bit is set

    If this connection was initiated with a passive OPEN (i.e., came
    from the LISTEN state), then return this connection to LISTEN state
    and return. The user need not be informed. If this connection was
    initiated with an active OPEN (i.e., came from SYN-SENT state) then
    the connection was refused, signal the user «connection refused». In
    either case, all segments on the retransmission queue should be
    removed. And in the active OPEN case, enter the CLOSED state and
    delete the TCB, and return.

    Community's user avatar

    answered Apr 30, 2014 at 9:28

    James Brock's user avatar

    James BrockJames Brock

    3,1761 gold badge28 silver badges31 bronze badges

    1

    Connection refused means that the port you are trying to connect to is not actually open.

    So either you are connecting to the wrong IP address, or to the wrong port, or the server is listening on the wrong port, or is not actually running.

    A common mistake is not specifying the port number when binding or connecting in network byte order…

    answered Feb 25, 2010 at 11:03

    RedPandaCurios's user avatar

    3

    Check at the server side that it is listening at the port 2080.
    First try to confirm it on the server machine by issuing telnet to that port:

    telnet localhost 2080

    If it is listening, it is able to respond.

    answered Feb 25, 2010 at 11:36

    Adil's user avatar

    AdilAdil

    2,3927 gold badges33 silver badges38 bronze badges

    1.Check your server status.

    2.Check the port status.

    For example 3306 netstat -nupl|grep 3306.

    3.Check your firewalls.
    For example add 3306

    vim /etc/sysconfig/iptables
    # add
    -A INPUT -p tcp -m state --state NEW -m tcp --dport 3306 -j ACCEPT
    

    answered Mar 24, 2017 at 4:10

    Jack Sun's user avatar

    Jack SunJack Sun

    2771 gold badge3 silver badges14 bronze badges

    1

    Although it does not seem to be the case for your situation, sometimes a connection refused error can also indicate that there is an ip address conflict on your network. You can search for possible ip conflicts by running:

     arp-scan -I eth0 -l | grep <ipaddress>
    

    and

    arping <ipaddress>
    

    This AskUbuntu question has some more information also.

    Community's user avatar

    answered Jan 15, 2013 at 17:35

    SnapShot's user avatar

    SnapShotSnapShot

    5,4345 gold badges41 silver badges39 bronze badges

    I get the same problem with my work computer.
    The problem is that when you enter localhost it goes to proxy’s address not local address you should bypass it follow this steps

    Chrome => Settings => Change proxy settings => LAN Settings => check Bypass proxy server for local addresses.

    answered Aug 21, 2013 at 6:03

    İbrahim Özbölük's user avatar

    1

    In Ubuntu, Try
    sudo ufw allow <port_number>
    to allow firewall access to both of your server and db.

    answered May 14, 2017 at 5:59

    rajeeva9's user avatar

    From the standpoint of a Checkpoint firewall, you will see a message from the firewall if you actually choose Reject as an Action thereby exposing to a propective attacker the presence of a firewall in front of the server. The firewall will silently drop all connections that doesn’t match the policy. Connection refused almost always comes from the server

    answered Sep 29, 2012 at 16:20

    Julio Nalundasan's user avatar

    In my case, it happens when the site is blocked in my country and I don’t use VPN.
    For example when I try to access vimeo.com from Indonesia which is blocked.

    answered May 28, 2020 at 13:09

    Aminah Nuraini's user avatar

    Aminah NurainiAminah Nuraini

    17.5k8 gold badges87 silver badges106 bronze badges

    • Check if your application is bind with the port where you are sending the request
    • Check if the application is accepting connections from the host you are sending the request, maybe you forgot to allow all the incoming connections 0.0.0.0 and by default, it’s only allowing connections from 127.0.0.1

    answered Dec 4, 2022 at 1:18

    Vishrant's user avatar

    VishrantVishrant

    14.6k11 gold badges69 silver badges110 bronze badges

    I had the same message with a totally different cause: the wsock32.dll was not found. The ::socket(PF_INET, SOCK_STREAM, 0); call kept returning an INVALID_SOCKET but the reason was that the winsock dll was not loaded.

    In the end I launched Sysinternals’ process monitor and noticed that it searched for the dll ‘everywhere’ but didn’t find it.

    Silent failures are great!

    answered Oct 3, 2016 at 13:55

    xtofl's user avatar

    xtoflxtofl

    40.3k12 gold badges104 silver badges190 bronze badges

    2

    При попытке открыть любой из сайтов в браузере Гугл Хром (реже в других браузерах) вы можете столкнуться с ошибкой открытия нужной страницы сайта, и появившимся сообщением «ERR_CONNECTION_REFUSED». Данная ошибка может иметь довольно различные причины, начиная от проблем в работе провайдера Интернета, и заканчивая некорректными настройками интернет-подключения на пользовательском ПК.

    • Суть и причины дисфункции
    • Как избавиться от ERR_CONNECTION_REFUSED на компьютере
    • Измените DNS-адреса, используемые вашей системой, на публичные от Гугл
    • Заключение

    Ошибка ERR_CONNECTION_REFUSED

    Суть и причины дисфункции

    Полная версия текста данной ошибки звучит как «Error: connection refused», что в переводе означает «Ошибка: соединение отвергнуто». Данная ошибка возникает в стационарном и мобильном браузере Хром (в статистическом большинстве случаев), а также на альтернативных браузерах (значительно реже).

    Причины её возникновения могут быть следующими:

    • Наблюдаются проблемы в работе вашего интернет-провайдера (ISP);
    • Имеются проблемы в работе конкретного сайта (или на нём проводятся технические работы);
    • Вы используете прокси (VPN) для доступа к сайту, при этом указанный прокси (VPN) работает некорректно;
    • На вашем компьютере используются неверные настройки интернет-соединения;
    • Доступ к сайту блокирует какой-либо зловред;
    • Доступ к необходимому сайту блокируют антивирус или брандмауэр;
    • Наблюдаются проблемы в работе вашего роутера (модема);
    • Доступ к сайту блокируют разнообразные расширения (дополнения) установленные в вашем браузере;
    • Вы используете устаревшую версию браузера.

    Как избавиться от ERR_CONNECTION_REFUSED на компьютере

    Для решения данной проблемы, прежде всего, необходимо убедится, что вы пользуетесь самой свежей версией вашего браузера. А также что данная проблема исходит не от вашего интернет-провайдера (перезвоните провайдеру и проясните данный вопрос). Если же ваш браузер самой последней версии, и у провайдера всё в порядке, тогда рекомендую выполнить следующее:

    • Просто перезагрузите ваш компьютер (гаджет). Если ошибка имеет стохастическую природу, то после перезагрузки она исчезнет;
    • Установите корректные настройки IP-подключения. Запустите командную строку от имени администратора в Виндовс 7 (или Виндовс 10), и уже в ней поочерёдно введите следующие команды, не забывая нажимать на ввод после каждой из них:

    ipconfig /release
    ipconfig /all
    ipconfig /flushdns
    ipconfig /renew
    netsh int ip set dns
    netsh winsock reset

    После выполнения данных команд перезагрузите компьютер, обычно это позволяет исправить ошибку  на вашем ПК.

    Измените DNS-адреса, используемые вашей системой, на публичные от Гугл

    1. Нажмите на кнопку «Пуск», в строке поиска введите ncpa.cpl, и нажмите ввод.
    2. В открывшемся списке сетевых подключений найдите своё интернет-подключение, наведите на него курсор, нажмите на правую клавишу мышки.
    3. В открывшемся меню выберите «Свойства».
    4. В открывшемся окне сетевых подключения находим протокол IPv4, выбираем его, и жмём на «Свойства».
    5. Внизу выберите опцию использования следующих адресов ДНС-серверов, и пропишите там следующие публичные адреса от Гугл:

    8,8.8,8

    8,8,4,4

    Нажмите на «Ок», и перезагрузите ваш компьютер.

    Окно свойств протокола

    Используйте настройки публичных ДНС от Гугл

    • Временно отключите ваш антивирус и брандмауэр, а затем попробуйте войти на нужный сайт. Если переход будет осуществлён корректно, тогда внесите указанный сайт в исключения вашего антивируса (брандмауэра);
    • Перезагрузите ваш роутер (модем). Отключите его на минуту-две, затем включите обратно;
    • Попробуйте запустить сайт с другого ПК с другим IP. Если проблема наблюдается и там, тогда, возможно, данный сайт «упал», и необходимо уведомить об этом веб-мастера данного ресурса;
    • Очистите кэш и куки вашего браузера;
    • Проверьте ваш ПК на наличие вирусных программ (к примеру, с помощью «Dr.Web CureIt!»);
    • Отключите использование прокси. Нажмите «Пуск», в строке поиска введите inetcpl.cpl, и нажмите ввод. В открывшихся свойствах сети перейдите на вкладку «Подключения», а затем нажмите на кнопку «Настройка сети». Здесь оставьте галочку на опции «Автоматическое определение параметров», все остальные галочки снимите. Нажмите на «Ок», и перезагрузите ваш ПК;Окно настроек параметров локальной сети
    • Переустановите ваш Хром. Удалите его с помощью стандартного средства удаления программ (нажмите на «Пуск», в строке поиска введите appwiz.cpl, и нажмите ввод), перезагрузите компьютер, а затем установите самую свежую версию Хром.

    Также в других материалах нашего сайта мы разобрали, как исправить ошибки:

    • NET::ERR_CERT_WEAK_SIGNATURE_ALGORITHM
    • ERR_NAME_NOT_RESOLVED
    • ERR_INTERNET_DISCONNECTED

    Заключение

    Причинами ошибки ERR_CONNECTION_REFUSED могут быть различные аппаратные и программные факторы, вызывающие проблемы с сетевым подключением и доступом к нужному интернет-сайту. Наиболее эффективным вариантом решения данной дисфункции является исправление настроек IP, а также использование публичных серверов для ДНС-запросов от Гугл, что в большинстве случаев позволяет решить проблему подключения к интернету на вашем ПК.

    Просмотров 49.1к. Опубликовано 23 июня, 2018 Обновлено 24 июня, 2019

    Хотя Google Chrome является самым популярным веб-браузером, у него есть серьезные проблемы. Часто он показывает ошибку при просмотре любого веб-сайта. В это время вы узнаете « Как исправить соединение Err отказано ». Это очень знакомая проблема. Может появиться следующее сообщение.

    Ошибка 102 (net :: ERR_CONNECTION_REFUSED): сервер отказался от соединения

    В большинстве случаев несовпадения веб-сервера создают такие проблемы. В этом случае у Пользователей не будет возможности избавиться от него для этого конкретного веб-сайта. Только администратор веб-сайта сможет разрешить ошибочное соединение . Но это может быть результатом любых ошибок хром, сторонних расширений, рекламного ПО или вредоносных файлов cookie, программ или плагинов и т. Д. В этот раз пользователи должны предпринять необходимые шаги, чтобы определить главного виновника и решить его.

    Обычно эта ошибка появляется, когда Google Chrome не открывает домен / веб-сайт. Эта ошибка является одной из самых популярных и распространенных ошибок в Google Chrome. Эта ошибка может возникнуть по следующим причинам, перечисленным ниже.

    • Проблема с подключением к Интернету
    • Если веб-сайт не работает или временно не работает.
    • Веб-сайт также может быть заблокирован в системном файле Host
    • Веб-сайт может быть заблокирован брандмауэром
    • Вы получаете доступ к веб-сайту через прокси-сервер.

    Исправить ERR_CONNECTION_REFUSED в браузере Chrome:

    Теперь я попытаюсь дать некоторые рабочие решения, которые помогут вам избавиться от этой ошибки. Надеюсь, по крайней мере один из этих советов будет работать для вас. Прежде чем перейти к моему решению, очистите кеш браузера и посмотрите, работает ли он на вас.

    Попробуйте режим инкогнито:

    Если у вас есть несколько сторонних плагинов и расширений, установленных в хроме, вы можете просматривать их из режима инкогнито. Это облегчит выяснение плагина преступника. Если вы видите, что все идет хорошо в режиме инкогнито, попробуйте отключить все расширения и плагины и просматривать в обычном режиме. Теперь, вы не должны сталкиваться с ошибкой соединения отказались. В случае, если вы видите проблему и в режиме инкогнито, вам придется следовать следующим методам.

    Использование командной строки

    Откройте CMD (командная строка)  от имени Администратора и запускайте команды по очереди.

    ipconfig /release 
    ipconfig /all 
    ipconfig /flushdns 
    ipconfig /renew
    
    netsh int ip set dns 
    netsh сброс winsock

    Теперь перезагрузите компьютер, чтобы избавиться от ошибки ERR_CONNECTION_REFUSED.

    Изменение адреса DNS

    1. Откройте Центр управления сетями и общим доступом (щелкните правой кнопкой мыши значок «Сеть») и выберите «Изменить параметры адаптера».Центр управления сетями и общим доступом
    2. Щелкните правой кнопкой мыши Сетевой адаптер (Wi-Fi, LAN, Ethernet) и выберите «Свойства».Сетевой адаптер
    3. Теперь выберите Internet Protocol Version 4 (TCP / IPv4) и нажмите «Свойства».
    4. Теперь добавьте ниже DNS-адреса, как показано ниже.
    • Предпочтительный DNS-сервер: 8.8.8.8
    • Альтернативный DNS-сервер: 8.8.4.4

     DNS-адреса

    Вот и все. Задача решена.

    Отключить брандмауэр и антивирус:

    Иногда ваши брандмауэры или программы безопасности могут создавать проблемы с любым HTTP или https-сайтом. Если брандмауэр не доверяет SSL-сертификату, он может автоматически блокировать его.

    В результате пользователь может столкнуться с ошибкой соединения между своим браузером и веб-сайтом. Таким образом, иногда отключение программ безопасности может исправить ошибочное соединение, отклоненное в google chrome.

    Вы также можете настроить веб-безопасность в своей антивирусной или брандмауэрной программе, чтобы она запрашивала вас перед блокировкой любого сертификата SSL.

    Очистка DNS и изменение или сброс настроек подключения:

    Другая проблема, которая может вызвать err_connection_refused, — это настройки DNS и подключения. В большинстве случаев локальный провайдер по умолчанию предоставляет свой собственный DNS-сервер. У этого может быть проблема, которая вызывает ошибку, которую мы обсуждаем.

    В качестве решения, сначала я рекомендую вам очистить DNS и сбросить настройки подключения . Затем измените IP-адрес DNS. Вы можете использовать DNS Google, DNS уровня 3, открыть DNS, поскольку они очень популярны и защищены.

    Чтобы изменить настройки DNS, вы можете выполнять следующие действия.

    • Откройте RUN, нажав Win + R.
    • Введите  ncpa.cpl и нажмите Enter.
    • Теперь дважды щелкните соединение, которое вы используете для подключения к Интернету.
    • Нажмите « Свойства» и дважды щелкните значок « Протокол Интернета 4» (TCP / IPv4) .
    • Теперь выберите « Использовать» следующие адреса DNS-сервера .
    • Установите DNS как 8.8.8.8 и 8.8.4.4. Это Google DNS. Вы можете использовать любые другие общедоступные DNS-адреса, если хотите.
    • Теперь перезагрузите компьютер и убедитесь, что у вас исправлено err_connection_refused .

    Очистка кэшей браузера и файлов cookie

    В некоторых случаях очистка кешей и файлов cookie браузеров может сделать трюки. У каждого браузера есть разностные опции для очистки кешей и файлов cookie.

    Чтобы очистить данные браузера в Internet Explorer, нажмите комбинацию клавиш, например Shift + Ctrl + Del . Он откроет новое окно с различными параметрами для выбора из списка. Убедитесь, что выбраны файлы Cookies и веб-сайты . Затем нажмите кнопку « Удалить» .

    Очистка кэшей

    Чтобы очистить данные браузера FireFox, нажмите комбинацию клавиш, т.е. Shift + Ctrl + Del, и нажмите кнопку « Очистить сейчас» , чтобы удалить все кеши и файлы cookie.

    Очистка файлов cookie и кешей в Google Chrome также такая же, как и в FireFox IE. Чтобы очистить их, нажмите клавиши Shift + Ctrl + Del на клавиатуре и нажмите кнопку « Очистить данные браузера» внизу меню, которое отображается сверху.

    Проверьте настройки прокси для исправления Err_Connection_Refused:

    Иногда настройки вашего прокси-сервера могут повлиять на работу в Интернете. Вы можете столкнуться с множеством ошибок в google chrome. Поэтому я хотел бы предложить вам проверить настройки прокси-сервера.

    • Откройте RUN и введите  inetcpl.cpl . Теперь нажмите «Ввод».inetcpl.cpl 
    • Появится новое окно под названием «Свойства Интернета». Перейдите на вкладку подключения.
    • Нажмите «Настройки локальной сети».
    • Теперь убедитесь, что  установлен флажок Автоматически определять настройки . Снимите отметку с других параметров и перезагрузите компьютер.

    Я надеюсь, что он исправит ошибочное соединение . Если это вас разочарует, следуйте следующему методу.

    Сброс настроек браузера

    Ошибка ERR_CONNECTION_REFUSED также может возникнуть из-за неправильной настройки браузера или неправильных настроек браузера. Чтобы устранить эту проблему, вы можете сбросить настройки браузера до настроек по умолчанию, выполнив следующие простые шаги, приведенные ниже.

    1. Запустите настройки Google Chrome.
    2. Вы также можете скопировать и вставить  chrome://settings/resetProfileSettings в панель поиска, чтобы запустить настройки браузера.
    3. Найдите « Показать дополнительные настройки » и нажмите «Сбросить настройки».
    4. Затем появится окно подтверждения. Просто нажмите « Сброс ».Сброс настроек браузера
    5.  Это Он !. Настройки браузера Chrome сбрасываются до настроек по умолчанию .
    6. Проверьте, не появляется ли ERR_CONNECTION_REFUSED ошибка.

    Попробуйте перезагрузить свой WiFi-маршрутизатор

    Сброс вашего WiFi-маршрутизатора может устранить эту ошибку. Чтобы сбросить свой WiFi-маршрутизатор, нажмите и удерживайте кнопку питания на вашем Wi-Fi маршрутизаторе не менее 10 секунд. Дайте ему несколько секунд, прежде чем включать его и посмотреть, не появляется ли ошибка в вашем браузере Google Chrome.

    Отключение антивирусного программного обеспечения

    Отключение антивирусного программного обеспечения может помочь вам устранить эту проблему. Вот как отключить антивирус, чтобы исправить эту ошибку в Google Chrome.

    1. Найдите антивирусное программное обеспечение и запустите антивирусные настройки.
    2. Затем выполните поиск опции «Отключить защиту».
    3. Выберите параметр «Отключить защиту», затем примените изменения.
    4. Подтвердите выбор, нажав «ДА ОТКЛЮЧИТЬ ЗАЩИТУ».
    5. На всякий случай, если антивирус попросит вас установить таймер для отключения защиты, выберите минимальное возможное время.

    Попробуйте другую сеть

    Иногда у вашего интернет-провайдера может быть проблема. В результате вы можете столкнуться с той ошибкой, о которой мы говорим. Итак, просмотрите Интернет из другой сети. Вы можете использовать VPN и посмотреть, все ли вы столкнулись с проблемами. В случае, если у вас есть только трудности с вашим интернет-провайдером, свяжитесь с ними для лучшей помощи.

    Проверьте работу сайта.

    В большинстве случаев «err_connection_refused» принимается, потому что веб-сервер не принимает соединение. Ошибка может быть временной, и просто обновление веб-страницы может решить проблему.

    Попробуйте открыть тот же сайт на другом устройстве или в сети. Например, вы можете открыть сайт с помощью сети 3G или 4G с телефона. Если сайт работает в разных сетях, проблема может быть связана с сетью Wi-Fi или Wi-Fi. Обратите внимание, что следующие варианты могут помочь.

    В некоторых случаях err_connection_refused происходит из-за устаревшей версии браузера Chrome. Если вы хотите подтвердить, вызвана ли проблема внешним фактором, откройте веб-сайт с помощью телефона, приложения браузера Chrome и того же интернет-соединения. Если вы все еще сталкиваетесь с ошибкой err_connection_refused, то есть вероятность, что это вызвано неправильной настройкой маршрутизатора.

    Сброс Wi-Fi-маршрутизатора

    Часто ваш Wi-Fi-маршрутизатор работает без остановок в течение недель или месяцев. В конце концов, он начинает развиваться с ошибкой, и стоит попробовать сбросить Wi-Fi-маршрутизатор, хотя он может быть немного надуманным. Следуй этим шагам:

    • Отключите маршрутизатор; помните, что выключение маршрутизатора нажатием кнопки питания может быть недостаточно.
    • Подождите несколько минут и включите его снова. Проверьте, устранена ли проблема.

    Изменение на статический IP-адрес

    Одной из проблем с сетью является динамический IP-адрес, назначенный вашим интернет-провайдером. Вы можете обсудить с вашим интернет-провайдером, чтобы получить уникальный IP-адрес для вас. Назначьте этот IP-адрес на своем ПК и попробуйте загрузить страницу.

    Отключить межсетевой экран

    Брандмауэр Windows также может прекратить доступ к сайту в Chrome. Хотя для обеспечения безопасного просмотра необходимо включить брандмауэр, просто отключите его и попробуйте открыть страницу. Это поможет вам сузить проблему, если она связана с межсетевым экраном.

    В Windows 10 вы должны разрешить каждому установленному приложению разрешать через брандмауэр Defender. Перейдите в окно поиска и введите «брандмауэр». Нажмите «Разрешить приложение через брандмауэр Windows», чтобы открыть Защитник Windows.

    Убедитесь, что приложение Google Chrome разрешено через брандмауэр Defender.

    Отключить настройки прокси-сервера.

    С прокси-сервером у вас есть косвенный доступ к Интернету, и вы можете поддерживать анонимность. К сожалению, неисправный прокси-сервер может вызывать ошибки, в том числе err_connection_refused. Отключение вашего прокси-сервера может помочь в решении этой проблемы. Следуй этим шагам:

    • Откройте URL-адрес команды Chrome «chrome: // settings /» и нажмите ссылку «Дополнительно».
    • Перейдите в раздел «Система» и нажмите «Открыть настройки прокси».
    • Перейдите на вкладку «Подключения» и нажмите кнопку «Настройки LAN».
    • Убедитесь, что опция «Автоматически определять настройки» отключена.
    • В разделе «Прокси-сервер» убедитесь, что опция «Использовать прокси-сервер для вашей локальной сети ……» отключена.
    • Нажмите «ОК» и перезапустите браузер.

    Проверьте, что проблема решена.

    Flush DNS

    Откройте командную строку с правами администратора. Выполните следующую команду. Для завершения потребуется секунда, и она сообщит вам, когда ваш DNS-кеш успешно очищен. Перезагрузите систему и снова попробуйте открыть домен. Если он все еще не работает, попробуйте следующее решение.

    ipconfig /flushdns
    

    Обновление IP и DHCP

    1. Откройте командную строку с правами администратора и выполните следующую команду «ipconfig /renew».  Он обновит ваш IP-адрес и конфигурацию DHCP. Это может временно отключить вас от сети WiFi, но об этом не о чем беспокоиться.
    2. Запустите команду и подождите, пока Windows снова подключится к вашей сети.
    3. Проверьте, будет ли Chrome загружать домен.
    ipconfig /renew

    Исправить ERR_CONNECTION_REFUSED если вы являетесь веб-администратором:

    Я объяснил, как обычные пользователи могут избавиться от этой ошибки. Но, если вы являетесь веб-администратором, и вы внезапно сталкиваетесь с этой проблемой на своем веб-сайте, вы можете исправить ее, следуя некоторым общим путям.

    В большинстве случаев ваш сайт может показать эту проблему, когда вы обновляете свой сайт от HTTP до HTTPS. Вы можете подождать несколько минут и попытаться снова просмотреть. Тогда ты не столкнешься с этим снова. Если ваша конфигурация SSL имеет какие-либо проблемы, пользователи столкнутся с ошибочным соединением, отказавшимся нигде. Итак, попробуйте решить проблему с настройкой SSL. Не ищите бесплатный SSL. Всегда пытайтесь купить заплаченный.

    Иногда настройки вашей зоны DNS могут создать эту проблему. Дважды проверьте его и исправьте ошибки. Если вы находитесь в бесплатном DNS-хостинге, попробуйте перейти в бесплатный план Cloudflare. Владельцы веб-сайтов, разместившие свой сайт на VPS или выделенном сервере, могут перезагрузить свой сервер. Он также перезапустит все службы, которые вы используете на своем веб-сервере. В результате у него будет очень хороший шанс исправить ошибочное сообщение об ошибке отказа .

    Надеюсь, вы больше не столкнетесь с err_connection_refused, и мои методы будут полезны для вас. Пожалуйста, дайте мне знать все, что вы хотите знать, чтобы исправить эту ошибку. Вы также можете поделиться методом, который работал для вас в окне комментариев.

    Choosing the perfect browser will save you time

    by Milan Stanojevic

    Milan has been enthusiastic about technology ever since his childhood days, and this led him to take interest in all PC-related technologies. He’s a PC enthusiast and he… read more


    Updated on July 29, 2022

    Reviewed by
    Vlad Turiceanu

    Vlad Turiceanu

    Passionate about technology, Windows, and everything that has a power button, he spent most of his time developing new skills and learning more about the tech world. Coming… read more

    • Connecting to websites should be no more difficult than a walk in the park. But is it really?
    • It seems not. For instance, Err_connection_refused in Windows 10/11 tends to take the charm out of your browsing routine.
    • If Localhost refused to connect in Windows 10/11, you may want to tweak your registry a bit.

    err-con-refused err_connection_refused windows 10

    Instead of fixing issues with Chrome, you can try a better browser: OperaYou deserve a better browser ! 350 million people use Opera daily, a fully-fledged navigation experience that comes with various built-in packages, enhanced resource consumption and great design. Here’s what Opera can do:

    • Easy migration: use the Opera assistant to transfer exiting data, such as bookmarks, passwords, etc.
    • Optimize resource usage: your RAM memory is used more efficiently than Chrome does
    • Enhanced privacy: free and unlimited VPN integrated
    • No ads: built-in Ad Blocker speeds up loading of pages and protects against data-mining
    • Download Opera

    Computer errors can cause a lot of problems, and while some are harmless, others can be more severe. For instance, users reported that Err_connection_refused in Windows 10/11 prevents them from accessing their favorite websites.

    Is this your case too? If so, start by flashing your DNS via the Command Prompt. That should fix the error immediately.

    But what if the Localhost connection refused in Windows 10/11 error persists? If so, change your DNS server to Google’s and give it another go. Alternatively, you can also disable your proxy and check the Search Engine settings.

    Why am I getting ERR_CONNECTION_REFUSED?

    When Google Chrome’s attempt to connect to a web page results in a connection being rejected, the browser displays an error message that reads Err_connection_refused.

    The error code is almost always a client-side error, which indicates that the problem originated on your local computer system. Cache issues, proxy services, and DNS server issues are all common possible causes.

    On the other hand, the Err_connection_refused error in Chrome may occasionally be brought on by the web server that you are attempting to connect to.

    Errors of this kind can sometimes be brought on by problems that are inherent to the website itself, such as periods of unavailable server time. Check to see whether the website can be reached before attempting any of the other solutions.

    Users reported many other similar issues which we have listed below and which we’ll address in the following section:

    • 127.0.0.1 refused to connect in Windows 10/11 – This 127.0.0.1 address is referred to as a loopback. Try appending the port to the IP in order to fix the problem of 127.0.0.1 refusing to connect.
    • Localhost refused to connect in Windows 10/11 – To begin, if you are using XAMPP or WAMP on Windows, the problem may typically be fixed by modifying the port number used by the Apache web server.
    • Site refused to connect in Windows 10/11 – In order to solve this issue, you will need to disable the client for your firewall.
    • This site can’t be reached, localhost refused to connect – Check to check if the page you were trying to access has been taken down.
    • Err_connection_refused in Windows 10/11 inside Edge/Chrome/Firefox – Turn off your anti-virus and firewall software for the time being.

    So, without further a do, let’s see exactly what to do if the Localhost refused to connect in Windows 10/11.

    How do I fix ERR_CONNECTION_REFUSED?

    1. Try a different browser

    To avoid errors like Err_connection_refused Windows 10, 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 native 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

    Looking for a lighting-fast Internet browsing solution that doesn’t sacrifice privacy or stability? Look no further.

    2. Use Command Prompt

    1. Press Windows + X 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 ip-cmd err_connection_refused windows 10
    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. Press Windows and type network connections then click on the View network connections result.view-net err_connection_refused windows 10
    2. When the 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 it’s having some issues with the DNS, you’ll most likely get the Localhost refused to connect Windows 10 in your browser. Speaking of DNS issues, check out more useful tips to troubleshoot and fix whatever comes your way, just like a pro.

    4. Disable your proxy

    1. Open Chrome and click the Menu button in the top right corner and choose Settings from the menu.chrome-settings images not loading in chrome
    2. When the Settings window opens, search for proxy then click the Open your computer’s proxy settings option.proxy err_connection_refused windows 10
    3. Make sure to disable the Automatically detect settings option.detect- err_connection_refused windows 10

    A Proxy server is useful if you want to protect your privacy online. However, it can sometimes interfere with your connection and cause the Err_connection_refused in Windows 10/11 message to appear. After turning off your proxy, check if the error is fixed.

    5. Check your search engine settings

    1. Open Chrome and press the Menu button in the top right corner and choose Settings from the menu.chrome-settings images not loading in chrome
    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 the Localhost connection refused Windows 10 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.

    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.

    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. Tap the Windows key, type Chrome, and click the first result in order to open the browser.chrome-search twitch extensions not working
    2. Open the Clear browsing data menu with the following shortcut: Shift + Ctrl + Delete and select All time as the time range.all-time-chrome images not loading in chrome
    3. Checkmark the Cached images and files option and click Clear data.cached-delete err_connection_refused windows 10

    Some PC issues are hard to tackle, especially when it comes to corrupted repositories or missing Windows files. If you are having troubles fixing an error, your system may be partially broken.
    We recommend installing Restoro, a tool that will scan your machine and identify what the fault is.
    Click here to download and start repairing.

    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 in Windows 10/11 error to appear.

    Read more about this topic

    • How to quickly clear the cache in Windows 11
    • Fix: CCleaner not Clearing Cache [Android, PC, Browsers]
    • How to fix the CACHE MANAGER error in Windows 10/11

    8. Turn off Windows Firewall

    1. Press Windows 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 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. A 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 the changes made.

    Firewall is important because it prevents unknown applications from accessing the Internet. However, your firewall can also block your web browser and trigger the Err_connection_refused in Windows 10/11 error.

    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 Localhost refused to connect in Windows 10/11 error.

    To fix this problem, you need to temporarily disable your antivirus and check if the problem still persists. If disabling your antivirus solves the issue, it means that a 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 more performant 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.

    10. Check third-party applications

    Your installed applications can sometimes interfere with your Internet connection. Users reported that the 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 some to fix this problem.

    11. Run Chrome as administrator

    1. Right-click the Chrome extension and choose Properties from the menu.chrome-prop err_connection_refused windows 10
    2. Go to the Compatibility tab and check Run this program as an administrator.compatibility err_connection_refused windows 10
    3. Click Apply and OK.

    If you’re having problems with Localhost connection refused in Windows 10/11 in Google Chrome, you can simply try running Chrome as administrator. To do that, locate the Google Chrome shortcut, right-click it and choose the 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 by pressing Windows and typing its name inside the search bar.internet-options err_connection_refused windows 10
    2. When the Internet Options window opens, go to the Advanced tab and click the Reset button.ad-reset err_connection_refused windows 10
    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 the Registry Editor

    1. Press Windows + R then enter regedit and click OK.regedit-ok err_connection_refused windows 10
    2. When the Registry Editor opens, in the left pane navigate to the following key: Computer/HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Internet Settings settings-regedit err_connection_refused windows 10
    3. In the right pane, locate the ProxyEnable DWORD and double-click it.
    4. Change Value Data to 0 and click OK to save changes.0-ok err_connection_refused windows 10
    5. Close Registry Editor and check if the problem is resolved.

    Err_connection_refused in Windows 10/11 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 by making a 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.

    How do I check proxy settings in browser?

    1. Open Chrome, then navigate to its menu followed by Settings.chrome-settings windows 10 blocking chrome install
    2. Here, go to Privacy and security followed by Security.privacy-security-chrome err_connection_refused windows 10
    3. Scroll down until you find the Advanced section, here you will see the DNS settings.dns err_connection_refused windows 10

    For more information about proxy services and DNS, check out our post on how to fix DNS issues on Windows 10/11.

    There you go! If Localhost refused to connect in Windows 10/11, you now have all the tricks up your sleeve to have it fixed in no time. Do let us know which solution worked for you by reaching for the comments section below.

    Still having issues? Fix them with this tool:

    SPONSORED

    If the advices above haven’t solved your issue, your PC may experience deeper Windows problems. We recommend downloading this PC Repair tool (rated Great on TrustPilot.com) to easily address them. After installation, simply click the Start Scan button and then press on Repair All.

    newsletter icon

    Newsletter

    WordPressWordPress темы

    16 лучших тем WordPress о футболе и футболе ⚽ 2022

    Фев 8, 2023 110

    Вы пытаетесь создать сайт Football & Soccer с помощью WordPress? Вот лучшие шаблоны для футбольного клуба, футбольного клуба, американского футбола, школьного футбола, спортивной лиги, спортивного блога, спортивной электронной коммерции, фитнеса, спорта, WooCommerce и бизнеса.

    Подробнее…

    WordPress

    19 лучших ортопедических тем WordPress 🦿🩺 2022

    Фев 8, 2023 146 0

    Каковы лучшие шаблоны WordPress для ортопедической клиники? Мы сравнили лучшие шаблоны ортопедических клиник, подходящие для ортопедических, ортопедических…

    Подробнее…

    WordPress

    10 лучших алмазных тем WordPress 💎 2022

    Фев 7, 2023 175 0

    Вы ищете лучшие темы Diamond WordPress? Мы выделили лучшие темы блога о ювелирных изделиях, дизайна ювелирных изделий, ювелирного магазина, электронной…

    Подробнее…

    WordPressПлагины

    9 лучших плагинов для A/B-тестирования WordPress 🥇 2022 (бесплатно и Pro)

    Фев 7, 2023 7

    Пытаетесь найти плагины WordPress для A/B-тестирования? Ознакомьтесь с нашим экспертным выбором лучших тепловых карт в реальном времени, целевых страниц, заголовков и заголовков, тестовых кампаний, маркетинговых кампаний, инструмента сплит-тестирования A/B и плагинов A/B-тестирования для WooCommerce.

    Подробнее…

    WordPress

    4 лучших плагина WordPress Cron Jobs 🥇 2022 (бесплатно и…

    Фев 6, 2023 18 0

    Вы ищете лучшие плагины WordPress Cron Jobs? Вот лучшие плагины, которые вы можете добавить на свой сайт: «Планирование событий», «Cron Manager», «Function…

    Подробнее…

    WordPress

    5 лучших плагинов WooCommerce для скидок и лидогенерации…

    Фев 6, 2023 12 0

    Наличие подходящей скидки WooCommerce и плагина для генерации потенциальных клиентов на вашем WordPress может помочь вашему бизнесу значительно вырасти и…

    Подробнее…

    WordPressWordPress темы

    9 лучших теннисных тем WordPress 🎾 2022

    Фев 5, 2023 191

    Найдите лучшие темы WordPress для тенниса в 2022 году. Мы отобрали лучшие темы для теннисных клубов.

    Подробнее…

    WordPress

    19 лучших тем WordPress для итальянских ресторанов 🍝🥇 2022

    Фев 5, 2023 188 0

    Какой лучший шаблон итальянского ресторана для WordPress? Вот лучшие шаблоны для итальянского кафе, итальянской кухни, итальянского фаст-фуда, кулинарных…

    Подробнее…

    WordPress

    16 лучших тем WordPress для резюме 🥇 2022

    Фев 4, 2023 170 0

    Вы ищете лучшие темы резюме WordPress? Мы сравнили лучшие блоги с резюме.

    Подробнее…

    Понравилась статья? Поделить с друзьями:

    Читайте также:

  • Как исправить cannot open output file
  • Как исправить cannot find 800x600x32 video mode при запуске gta san andreas
  • Как исправить cable not connected
  • Как исправить bootloop на xiaomi
  • Как исправить bios на компьютере

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии