Hi everybody.
I've tried to get the IP address of a computer when I know its name. I use gethostbyname() and then use the HOSTENT structure to get the address.
But it did not work. Can anyone tell me how to get an IP address with standard format "xxx.yyy.zzz.ttt" when I know the computer name (such as john or sally). Thanks