Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get IP address of local machine
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00719097
Message ID:
00719112
Views:
14
>ya but what if you have more than one adapter/nic card or you're behind a proxy?

You'll want to implement GetAdaptersInfo() in Win98, WinME, Win2K or later, or GetAdapterAddresses() in XP - GetAdapterAddresses() is significantly easier to do, but is limited to XP and later platforms, while GetAdaptersInfo() can be implemented on any platform supporting IPHLPAPI.DLL v 3.0 or later.

I believe that Rick Strahl's wwIPStuff implements a function to retrieve multiple IP addresses associated with a machine.

>
>>See Get Local IP address FAQ #7778.
>>
>>>Hi gang,
>>>
>>>Anybody out there know of an API call to get the IP address of a local machine? For various reasons, it's not practical for one of my clients to shell to DOS, call IPCONFIG and send the output to a file -- so I'm trying to give them another option (g). BTW, they don't use WebConnect, so that's another idea that won't fly (sigh)...
>>>
>>>All assistance greatly appreciated --
>>>
>>>TIA,
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform