Windows Sockets Error – WSANO_DATA 11004

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

Windows Socket Error Code

WSANO_DATA
11004

Windows Socket Error Description

Valid name, no data record of requested type.
The requested name is valid and was found in the database, but it does not have the correct associated data being resolved for. The usual example for this is a host name-to-address translation attempt (using gethostbyname or WSAAsyncGetHostByName) which uses the DNS (Domain Name Server). An MX record is returned but no A record—indicating the host itself exists, but is not directly reachable.