>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,