Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting the local hostname/IP address
Message
De
05/01/2000 15:37:28
 
 
À
05/01/2000 15:09:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00313397
Message ID:
00313488
Vues:
29
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform