Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting the local hostname/IP address
Message
De
05/01/2000 15:09:01
 
 
À
05/01/2000 14:17:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00313397
Message ID:
00313455
Vues:
44
>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.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform