by Haze on Sat Apr 05, 2008 7:08 pm
not sure but -
Question/Problem: WSAEADDRNOTAVAIL (10049) Cannot assign requested address.
Answer/Solution: Normally results from an attempt to create a socket with an address not on this machine.
WinSock description: The "address" it refers to is the remote socket name (protocol, port and address). This error occurs when the sin_port value is zero in a sockaddr_in structure for connect or sendto.
This error also occurs when you are trying to name the local socket (assign local address and port number) with bind, but Windows Sockets doesn't ascribe this error to bind, for some unknown reason.