Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Retrieving TCP/IP Address
Message
From
25/09/1998 15:28:32
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00140525
Message ID:
00140985
Views:
42
>>>>>>Anyone know an easy way to retrieve the local TCP/IP address using VFP?
>>>>>
>>>>>IP Address? I believe NetBios does this. But for the free way, Rick Strahl's wwIPStuff class has a method called GetIPFromDomain that does a DNS Lookup on a domain name...
>>>>
>>>>Thanks, Eric. But I'm wanting the acutal IP address for the machine that my Exe's runninging on, which coincidentally won't have a DNS entry.
>>>Open the registry using regedit to find the key for the ip address. Then use the registry.prg that ships with VFP or get the one from Rick Strahl's WWW.west-wind.com and locate that key.
>>
>>This information may not be stored in the registry depending on the network setup. Many networks assign IP addresses at logon, and most set IP from a login script.
>
>
>In that case, I'd post in the win32 api section. Maybe George Tasker or one of the other gurus can give you an api call.

I think the solution will be found in one of the ActiveX controls designed to work with network function, like GPLib.
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform