Windows Sockets Error – WSAEADDRNOTAVAIL 10049

In this post, you’ll learn more about the Windows Socket Error WSAEADDRNOTAVAIL
10049 returned by the WSAGetLastError function in Windows as well a quick description about the error

Windows Socket Error Code

WSAEADDRNOTAVAIL
10049

Windows Socket Error Description

Cannot assign requested address.
The requested address is not valid in its context. This normally results from an attempt to bind to an address that is not valid for the local computer. This can also result from connect, sendto, WSAConnect, WSAJoinLeaf, or WSASendTo when the remote address or port is not valid for a remote computer (for example, address or port 0).