Winsock Error Codes - Brought to you by Winsock-Error.com

10039 "Destination address required."

WSAEDESTADDRREQ (Winsock error number: 10039)

Microsoft say this about Winsock error 10039 - WSAEDESTADDRREQ:

A required address was omitted from an operation on a socket. For example, this error is returned if sendto is called with the remote address of ADDR_ANY.

Full details of Winsock TCP error 10039 - WSAEDESTADDRREQ:

Berkeley description: A required address was omitted from an operation on a socket.

WinSock description: Same as Berkeley. The explanation is simple and obvious: in order to connect to or send to a destination address, you need to provide the destination address. This error occurs if the sin_addr is INADDR_ANY (i.e. a long zero) in the sockaddr_in structure passed to. Note: Although and FD_CONNECT also have this error listed, the documentation specifically states that WSAEADDRNOTAVAIL is appropriate if INADDR_ANY is passed as a destination address.

User suggestions: Did you enter a destination hostname? If so, then the application might have had a problem resolving the name (see suggestions at WSATRY_AGAIN for more information).

   
This page is designed to help you to understand Winsock TCP error 10039. It will not necessarily mean you can instantly fix issues when your computer tells you that Winsock is having problems with code 10039, rather it will give you the necessary background information to help solve the matter.

Programming declarations for 10039 (WSAEDESTADDRREQ):

C#
long WSAEDESTADDRREQ = 10039 ;

VB.net
Dim WSAEDESTADDRREQ As Long = 10039

VB6
Dim WSAEDESTADDRREQ As Long
WSAEDESTADDRREQ = 10039