ERR_CONNECTION_REFUSED Server refuses connection
The destination server did not accept the connection request.
First, check that this guide matches your problem
When it happens
I can't connect to the development server or the service on a specific port.
Common causes
- Service not running
- Wrong port
- Rejected by the server
Step-by-step fixes
3 steps, 17 min–27 min in total. The easiest checks come first, so stop as soon as the problem is fixed.
A refused connection most often means no service is listening on that address and port. If the port number or http/https is wrong, the connection is refused even when the service is fine.
- Compare the address bar with the original instructions. For example, if the dev server is http://localhost:3000, make sure you did not open it with https or a different port.
- For an external site, also try the same address on a phone using mobile data.
What to check
If an external site is refused on other networks too, the operator needs to restart the service, so send them the address and time. If it is your own server, check the service status in the next step.
Did this step fix it?
If the dev server crashed or started on a different port, the browser only gets a refusal.
- Check the terminal that runs the server for error messages or an exit notice, and see which address it actually opened (for example Local: http://localhost:3001).
- In Command Prompt, search by port number, for example netstat -ano | findstr :3000, and look for a LISTENING line.
- If the LISTENING address is only [::1], it is open on IPv6 only, so connect with http://localhost; if it is only 127.0.0.1, connect with http://127.0.0.1 and compare.
What to check
If there is no LISTENING line, restart the server and fix the terminal errors first. If it opens on the same PC but other devices are refused, check the bind address and firewall in the next step.
Did this step fix it?
If the server is bound only to 127.0.0.1, only the same PC can connect and other devices are refused. A firewall blocking the port can look similar.
- Check the framework's documentation for a startup option that sets the listen address to 0.0.0.0 or the PC's local IP.
- In Windows Security → Firewall & network protection → Advanced settings → Inbound Rules, check for a rule allowing the port. Open it for private networks only, not public ones.
What to check
If other devices can connect after fixing the binding and rule, you are done. If they are still refused, check the router's client isolation (AP isolation) setting or the company network policy.
Did this step fix it?
Frequently asked questions
Related PC FIX problems
Official references
Content reviewed: 2026-10-07