Windows Sockets Error – WSAEAFNOSUPPORT 10047

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

Windows Socket Error Code

WSAEAFNOSUPPORT
10047

Windows Socket Error Description

Address family not supported by protocol family.
An address incompatible with the requested protocol was used. All sockets are created with an associated address family (that is, AF_INET for Internet Protocols) and a generic protocol type (that is, SOCK_STREAM). This error is returned if an incorrect protocol is explicitly requested in the socket call, or if an address of the wrong family is used for a socket, for example, in sendto.