Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get Server IP Address alternatives
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00534448
Message ID:
00534808
Views:
14
Claude,

It looks like this will work. Thank you.

Joel

>There are about 3 different ways of doing it programatically apparently. They're all in that thread. The winsock one looked the best ...
>>>see Message #529855 and thread...
>>>>What ways are there to get the IP address of a Win 2000 server?
>>>>
>>>>I'm running a program on my Win 2000 server. During startup of the program I need to get that server's IP address. I suppose I can use a Windows DLL to get it from the Registry. Does anyone know of any other Windows DLL calls that can return the server IP address other than the Registry DLL method calls?
>>>>
>>>>Joel
>>
>>You could parse the output from the ipconfig command...
>>
>>
>>D:\Dev\CodeMine>ipconfig
>>
>>Windows 2000 IP Configuration
>>
>>Ethernet adapter Local Area Connection 2:
>>
>> Connection-specific DNS Suffix . : zilch.com
>> IP Address. . . . . . . . . . . . : 192.168.0.4
>> Subnet Mask . . . . . . . . . . . : 255.255.255.0
>> Default Gateway . . . . . . . . . : 192.168.0.1
>>
>>D:\Dev\
Previous
Reply
Map
View

Click here to load this message in the networking platform