Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Physical Address
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00776752
Message ID:
00776775
Views:
8
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform