WSAEAFNOSUPPORT
10047
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.
Error 10047 is a Winsock error that indicates that the "address family is not supported".
What that means is that we tried to create a socket using a protocol that is not supported by the current configuration. For example, if TCP/IP is not loaded on the machine, then you would see this error when we try to open a TCP/IP socket. (Similarly, we'd see this if we tried to open an IPX/SPX socket, and there
was no IPX/SPX support on the machine ... but we only display an error if TCP/IP support is not present.)
Verify that TCP/IP support is loaded on that machine, and configured properly. Try using an application like TELNET to verify that you can actually connect to another machine over TCP/IP