| Previous | Next |
| WSAEADDRINUSE | WSAENETDOWN |
WSAEADDRNOTAVAIL
WSAEADDRNOTAVAIL means that an address used by the operation is not valid in that context. The diagnosis differs depending on whether the address is local or remote.
Where it occurs
With bind, the requested local address may not belong to any active interface on the machine. With connect or sendto, the target cannot be an unspecified wildcard address such as INADDR_ANY or in6addr_any.
What to check
- Confirm the address family matches the socket: IPv4 addresses require an IPv4 socket, IPv6 addresses require an IPv6 socket.
- Confirm the local interface and address still exist after VPN, DHCP, or network changes.
- For a server that should listen on all interfaces, intentionally use the appropriate wildcard address rather than a stale interface address.
Microsoft: bind · Microsoft: connect
Looking for a different code? Search another status or error code.