From: games60@... Date: 2005-07-01T18:30:43+09:00 Subject: Re: hostent problem Hi, Now the code is: hostent* hp; TCHAR result[MAX_COMPUTERNAME_LENGTH�+1]; hp = gethostbyname("localhost"); if(hp!=NULL) { result=(TCHAR*)hp->h_name; } I am still getting the same output. hp=NULL.