| Previous | Next |
| WSAETIMEDOUT | WSAELOOP |
WSAECONNREFUSED
WSAECONNREFUSED means that the connection attempt reached a target that forcefully rejected it. This is different from a timeout: the endpoint or an intermediary responded rather than remaining silent.
Common causes
- No service is listening on the destination port.
- The service is listening only on another address family or interface.
- A firewall or security device is configured to reject the connection.
- The service is temporarily overloaded or intentionally refusing new clients.
What to check
Log the resolved IP address, port, protocol, and address family. Confirm the listener on the remote system and compare a local connection test with a test from the same network path as the failing client.
Microsoft: connect · Microsoft: Windows Sockets Error Codes
Looking for a different code? Search another status or error code.