Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting a PCs local IP address
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
01042813
Message ID:
01042867
Vues:
27
This message has been marked as a message which has helped to the initial question of the thread.
Hi Ashley,

This example uses GetAdaptersInfo API function:
How to retrieve adapter information for the local computer (including MAC address)
http://www.news2news.com/vfp/?example=347

This one uses Winsock API functions gethostname, gethostbyname:
Winsock: retrieving the standard host name and IP address for the local machine
http://www.news2news.com/vfp/?example=215

You can ping local computer using IcmpSendEcho API function to get its ip address:
How to ping a remote site using ICMP API calls
http://www.news2news.com/vfp/?example=486

And Winsock OCX of course...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform