Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting a PCs local IP address
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
01042813
Message ID:
01042867
Views:
29
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...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform