Hi, gethostbyname ... has been deprecated ;-) use: int getaddrinfo( const char* nodename, const char* servname, const struct addrinfo* hints, struct addrinfo** res ); addrinfo host; LPADDRINFO res; ... host.ai_flags = AI_CANONNAME; host.ai_protocol = IPPROTO_TCP; host.ai_family = PF_INET; host.ai_socktype = SOCK_STREAM; getaddrinfo( strMachineName, NULL, &host, &res ); ...
----------- Mila