Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting the local hostname/IP address
Message
De
05/01/2000 14:17:05
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Getting the local hostname/IP address
Divers
Thread ID:
00313397
Message ID:
00313397
Vues:
60
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform