Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting Current TCP/IP Address to VFP
Message
 
To
21/03/1999 15:27:28
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00199522
Message ID:
00200424
Views:
15
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform