ERR_CONNECTION_REFUSED indicates that a connection attempt to a site or service was rejected or could not be established at the target endpoint. Diagnose the scope before changing firewall rules.
Symptoms: how to recognize this error
- A browser immediately shows ERR_CONNECTION_REFUSED.
- The problem affects one local service or a particular website.
- A site works on mobile data but fails on a local network.
Why this error occurs
- The destination service is stopped or listening on a different port.
- A local proxy, firewall or security policy blocks the connection.
- DNS or hosts-file entries point to the wrong endpoint.
- The target server refuses traffic on the requested port.
Before you begin
Use the least disruptive test first. Record the original result so you can tell whether a change helped. Product interfaces and available options vary by version.
- Write down the full URL including scheme and port.
- Determine whether the destination is public, local or a private development service.
- Do not disable a firewall globally to make one website load.
Start with Beginner steps. Advanced steps require the indicated permissions and a verified rollback plan. Confirm https versus http, hostname spelling and explicit port numbers. Compare the same address from a second browser and another device on the same network. Try a trusted mobile connection. A difference points toward local routing, proxy or firewall conditions. Temporarily disconnect only an optional VPN or proxy you control, then restore it after testing. If you own the destination, verify that its web service is running and restart it using its documented procedure. On Windows, use `netstat -ano` and filter for the expected port; on Linux use `ss -ltn` to confirm a listener exists. Use `nslookup` or `dig` to compare the resolved address with the intended server; do not publish private IPs. Review host and network rules for the exact destination port and interface; never create broad allow-all rules.Step-by-Step Troubleshooting
Check the exact URL
Test another browser and device
Compare a different network
Review proxy and VPN settings
Restart the affected service
Check listening sockets
Verify name resolution
Inspect narrow firewall rules
Common mistakes to avoid
- Do not treat connection refusal as proof that DNS is broken.
- Do not turn off endpoint security permanently.
How to verify the fix
Repeat the original failing operation using the same account, network, device or application context. A successful unrelated test does not confirm the original problem is solved.
- The original URL loads over the intended scheme and port.
- The result is consistent across the expected client networks.
- Firewall and proxy settings remain appropriately restricted.
Solution Checklist
If the problem continues: rollback and escalation
Restore proxy, VPN, firewall and DNS settings changed during testing, especially when a workaround broadened access.
If you need vendor or hosting support, provide the product version, exact error, approximate time, affected operation and the steps already attempted. Remove passwords, private tokens and personal data from logs and screenshots.
Prevent recurrence
- Keep supported software and firmware up to date using official sources.
- Record configuration changes and maintain tested recovery options.
- Investigate repeat failures using logs and reproducible symptoms instead of applying multiple unrelated fixes.
Frequently asked questions
Does this error always have one cause?
No. The same code can appear under different account, device, service or software conditions. Match the symptoms and diagnostic evidence before selecting a repair.
Should I reset or reinstall everything?
Usually not as a first step. Try reversible checks first, verify backup availability and use the vendor-supported recovery process only when the evidence points to a damaged installation.
What should I collect before contacting support?
The exact error, software and device versions, the failing operation, time of occurrence, a sanitized screenshot and the outcome of each attempted fix.
For additional guides, see the PRBLEM Solutions directory and choose the matching platform or error code.
Official references
The links above are official documentation entry points or relevant vendor guides. Confirm current product-specific instructions before changing production systems; a matching error message alone does not establish a root cause.
Disqus hosts the discussion. Comments load automatically as you approach this section and may use cookies.