Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP6 How to: Get the IP address of the machine
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00893826
Message ID:
00894340
Views:
15
Hi Ashley

Thanks for responding.

>An alternative I've used:
>
>! ipconfig > c:\ip.txt
>cIP=filetostr('c:\ip.txt')
>cIP=substr(cIP,at('IP Address',cIP),at('Subnet Mask',cIP)-at('IP Address',cIP))
>cIP=substr(cIP,at(': ',cIP)+1)

1. The IP for the dial-up is created only at run-time as adaptor 0, maybe easy in this method
2. The Cable-Internet does not have an IP that is returned by IPConfig
3. Don't mean to be rude, people can have more than 1 network cards which one is the Internet one would be difficult with IPConfig and I hate hardcoding for a client.
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Previous
Reply
Map
View

Click here to load this message in the networking platform