bandi
August 6th, 2001, 05:38 AM
Is there any Win32 API call to get the local machine IP adress if its connected to the network?
Thanks.
Thanks.
|
Click to See Complete Forum and Search --> : Local Machine IP Address bandi August 6th, 2001, 05:38 AM Is there any Win32 API call to get the local machine IP adress if its connected to the network? Thanks. Alex Fedotov August 6th, 2001, 06:27 PM Yes, you can use gethostbyname on the result of gethostname to retrieve the IP addresses of the local machine. See this post for a sample http://codeguru.earthweb.com/cgi-bin/bbs/wt/showpost.pl?Board=vc&Number=173042 codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |