Winsock error 11004 how to solve it ?
Posted on 2002-05-08
I have machine A and machine B runing win-2000 and they are independent.Machine A is connected to the Internet through my service provide("Dishnet" phno-172341) by dial up connection same way Machine B is connected to Internet through the same service provide(let say another account phno-8210021).I have an socket server watching at port 1200 which is at Machine A.I have client socket at machine B connecting to server(to Machine A) at port 1200.Now comming to the problem
the client is started in Machine B like this
c:\client.exe 1200 ip_add_of_machine_A host_name
i have used
struct in_addr iaHost;
HOSTENT *pHostInfo = NULL;
iaHost.s_addr = inet_addr(ip_add_of_machine_A);
pHostInfo = gethostbyaddr((LPCTSTR)&iaHost,sizeof(struct in_addr),AF_INET);
if(pHostInfo == NULL)
ReturnError(WSAGetLastError());// just displays error message
i get an winsock error 11004 the error discription is
"The requested name is valid and was found in the database,but it does not have have correct associated data being resolved for"
Machine A and B does not have static ip but the service provider provide dynamic ip for Machine A and B which i use it.
kindly give me a solution ASAP.