Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting the local hostname/IP address
Message
From
05/01/2000 14:17:05
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Getting the local hostname/IP address
Miscellaneous
Thread ID:
00313397
Message ID:
00313397
Views:
62
Does anybody have experience with the Winsock gethostname/gethostbyname/etc. calls? I'm able to successfully get the local hostname and IP address for ONE of my adapters but not for the others in my computer. Is there a way to specify which adapter I want the HOSTENT structure to return info for?I'm using WinNT4sp6.

By the way, I've worked around this by using the RAS calls because I'm looking for the dynamic IP of my PPP modem at the moment. But I'd like to get the IP's for my 2 other adapters as well.
A Hilton
Software & Technology Development,
Programming & Business Process Consulting
Next
Reply
Map
View

Click here to load this message in the networking platform