>>Hi Albert,
>>
>>I'm guessing here, but I'd assume that it would return either the first one defined or the one currently referenced as the default (if there is such a thing). I don't have access to a machine with multiple IPs.
>
>We have some. From experience with Java RMI Servers, I suspect that the IP address assigned to the first installed NIC will be returned. I see the assumption that there will be on IP address as a design flaw. There should be some way to get an enumerated list of assigned IP addresses.
The IP addresses should be stored in the registry. Not having multiple IPs it's a bit tough for me to tell you the exact key(s). On this machine, my single IP is store under HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Class\NetTrans\0000\IPAddress. I'd check the registry to see if there was a pattern under which I could retrieve them.
hth,
George
Ubi caritas et amor, deus ibi est