|
-
September 11th, 1999, 09:06 AM
#1
Get IP address
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|