How to Fix ERR_CONNECTION_REFUSED
The ERR_CONNECTION_REFUSED error appears when a browser attempts to connect to a website but the connection is rejected. The problem may originate from the website's server, your computer, a proxy, a firewall, or your local network.
The error does not necessarily mean your internet connection is completely unavailable. By checking other websites, devices, and network settings, you can narrow down the cause and choose an appropriate solution.
What Does ERR_CONNECTION_REFUSED Mean?
A browser normally establishes a network connection with a web server before requesting a page. A connection-refused error means the connection attempt was rejected rather than successfully established.
This can happen when a service is not listening on the expected port, a server is unavailable, or network software actively rejects the connection. A browser may display different wording depending on the browser and operating system.
Common Causes
- Server service unavailable: The website's web server may be stopped or temporarily unavailable.
- Firewall restrictions: A firewall or security rule may reject the connection.
- Proxy misconfiguration: The browser may be using an unavailable proxy server.
- Local network problem: Router or network settings may interfere with access.
- Incorrect address or port: The requested service may not be available at the specified address and port.
- VPN interference: VPN software or its network configuration may affect the connection.
- Website maintenance: The server may be undergoing maintenance or experiencing an outage.
Quick Checks Before Changing Settings
- Check the spelling of the website address.
- Reload the page and wait briefly before trying again.
- Open another well-known website to check your internet connection.
- Try the affected website in another browser.
- If possible, test the website on another device or trusted network.
- Check the website owner's official status page, if available.
If only one website fails on multiple devices and networks, the problem may be on the website's side. If many websites fail only on one computer, investigate that computer's settings first.
Step-by-Step Fixes
1. Restart Your Browser
Close the browser completely, reopen it, and visit the website again. If the browser has many open tabs or extensions, close unnecessary tabs and retry.
This simple check can help rule out a temporary browser problem. If the error persists, continue with the next steps.
2. Restart Your Computer and Router
Restarting your computer may refresh temporary network state. If you control your router, restart it according to the manufacturer's instructions and wait for the connection to return.
Avoid resetting the router to factory settings unless you know how to restore its configuration. A restart is different from a factory reset.
3. Check Proxy Settings
An incorrect proxy setting can direct browser traffic to a service that is not accepting connections.
- Open Windows Settings.
- Select Network & internet.
- Open Proxy.
- Review the settings and check whether a proxy is intentionally configured.
- Change settings only if you understand the configuration and are permitted to do so.
If your organization requires a proxy, do not disable it. Ask the network administrator to verify the correct settings.
4. Temporarily Test Without a VPN
A VPN may affect routing or access to particular websites. Check whether the VPN is connected and consult its official troubleshooting instructions.
If appropriate, temporarily disconnect the VPN and test again. Reconnect it afterward. Do not bypass workplace or school network security policies.
5. Check Firewall and Security Software
Firewall rules or security software can sometimes block connections. Review recent security alerts and check whether the website or application has been blocked.
Do not permanently disable your firewall or antivirus software. If a rule needs to change, confirm that the destination is trusted and follow the security product's official instructions.
6. Clear the Browser Cache
Cached browser data is not the most common cause of a refused network connection, but clearing relevant cached data can help rule out some browser-related problems.
- Open your browser's settings.
- Find the privacy or browsing-data section.
- Select cached images and files.
- Clear the selected data and reload the website.
Review the selected data carefully. Clearing cookies may sign you out of websites.
7. Flush the DNS Cache on Windows
Flushing the DNS resolver cache can help with certain name resolution issues, although it does not directly repair a server that is refusing connections.
- Open the Start menu.
- Search for Command Prompt.
- Open it, using administrator permission if required.
- Run this command:
ipconfig /flushdns
When the command completes, reopen the browser and test the affected website again.
8. Test Another Network
If possible, use another trusted connection to test the website. For example, you might compare your usual connection with a permitted mobile data connection.
If the website works on another network, investigate the original network, router, proxy, VPN, or firewall configuration. If it fails everywhere, the website's server may need attention.
If You Own the Website
If visitors report ERR_CONNECTION_REFUSED on a website you manage, browser-side troubleshooting may not be enough. Check the hosting service and server configuration.
- Check your hosting provider's service status and incident notices.
- Confirm that the website's hosting account is active.
- Review server logs and web-server service status where you have access.
- Verify that the intended service is listening on the correct port.
- Review firewall rules and hosting security settings.
- Check DNS records if the domain does not resolve to the expected server.
- Contact your hosting provider if server-level access is unavailable.
Do not change server ports or firewall rules without understanding the configuration. A connection-refused error may require action from the hosting provider rather than the website visitor.
When to Contact Support
- Contact your hosting provider if your own website refuses connections and the hosting service appears unavailable.
- Contact your internet provider if multiple websites fail across devices on the same connection.
- Contact your network administrator if the error occurs on a managed work or school network.
- Contact the website owner if one website fails consistently across different devices and networks.
When reporting the problem, provide the website address, the exact error message, when it started, and whether other websites work. Never share passwords or sensitive account information.
How to Reduce Future Connection Problems
- Keep your browser and operating system updated.
- Use trusted network equipment and maintain its firmware.
- Keep VPN, proxy, firewall, and security settings documented.
- Avoid changing network settings without a clear reason.
- Check official service-status information during suspected outages.
- If you manage a website, monitor hosting availability and review server errors.
Frequently Asked Questions
1. What causes ERR_CONNECTION_REFUSED?
Common causes include an unavailable server, firewall rules, proxy misconfiguration, VPN issues, or a service that is not accepting connections on the requested port.
2. Is ERR_CONNECTION_REFUSED a DNS error?
Not usually. DNS resolves a domain name to an address, while a connection-refused error generally occurs when the browser's connection attempt is rejected. DNS can still be relevant if the domain resolves to an unintended server.
3. Can my firewall cause this error?
Yes. A firewall or security rule may reject a connection. Investigate the relevant rule instead of permanently disabling your security protection.
4. Why does only one website show this error?
The website's server may be unavailable, its service may not be listening on the expected port, or access may be restricted. Testing another device or network can help identify the cause.
5. Will flushing DNS fix ERR_CONNECTION_REFUSED?
It may help in some cases involving incorrect or outdated name resolution, but it will not repair a server that is not accepting connections.
6. Should I disable my antivirus to fix the error?
Do not permanently disable antivirus or firewall protection. Review security alerts and permitted rules, or ask the software provider or administrator for help.
7. What should I do if none of the fixes work?
Test another browser, device, and trusted network if possible. Then contact the website owner, hosting provider, internet provider, or network administrator according to where the problem appears.
Final Thoughts
ERR_CONNECTION_REFUSED means the browser could not establish the requested connection. Start with simple checks, including testing other websites and restarting the browser. Then review proxy, VPN, firewall, and network settings when appropriate.
If the problem affects only one website across different networks, the server or hosting provider may need to investigate. Use the evidence from your checks to decide which support team to contact.