Ed,
The Winsock control does a gethostname, yada yada yada call to get it's "Local IP" property. It returns the exact same thing. Ricks' returns the same thing although I can't say exactly what calls he makes to get the information. They all just return the information from the first adapter they find.
- A Hilton
>>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.
>
>The easiest path to this information is the WINSOCK ActiveX control, or Rick Strahl's offerings.
A Hilton
Software & Technology Development,
Programming & Business Process Consulting