Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Physical Address
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00776752
Message ID:
00776775
Vues:
9
>so far i can get the IP address with this
>
>IPAddress = IPSocket.LocalIP
>localhostname=IPSocket.localhostname
>remotehost=IPSocket.remotehost
>remotehostip=IPSocket.remotehostip
>
>but how do I get the Physical address?

Foxtools has a function _WSockGetHostByAddr, that resolves the host computer name by IP Address. The syntax is
? _WSockGetHostByAddr(lcIPAddr, @lcbuffer)
It will return 1 if it is able to resolve the IP address. Note: Of course, you have to use SET LIBRARY TO FOXTOOlS in order to use it.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform