| Previous | Next |
| WSAENETDOWN | WSAENETRESET |
WSAENETUNREACH
WSAENETUNREACH means that the destination network cannot currently be reached from this host. It identifies a routing or reachability problem before a connection can be established.
What it does not prove
This code does not show that the remote service is stopped. The host might be valid but unreachable through the current route, gateway, VPN, interface, or IP family.
What to check
- Verify the destination address and whether it is IPv4 or IPv6.
- Inspect the effective routing table and the interface selected for the destination.
- Check local VPN, proxy, and firewall policies that can alter routing.
- When using a hostname, retain the resolved address in logs so DNS results and reachability are not conflated.
Microsoft: connect · Microsoft: Windows Sockets Error Codes
Looking for a different code? Search another status or error code.