Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get Server IP Address alternatives
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00534448
Message ID:
00534543
Vues:
12
>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\
-- Larry Keyes
Remember only You can prevent Gray Goo. Never release nanobot assembers without replication limiting code.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform