Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How Can I Get My IP Address ?
Message
From
12/07/2001 12:58:26
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00528550
Message ID:
00529822
Views:
11
PMFJI but ipconfig does also work on NT. It's winipcfg that doesn't work in NT/W2K.

"ipconfig" will give you the basic info while "ipconfig /all" will give you:
        Host Name . . . . . . . . . . . . : 
        Primary DNS Suffix  . . . . . . . : 
        Node Type . . . . . . . . . . . . : 
        IP Routing Enabled. . . . . . . . : 
        WINS Proxy Enabled. . . . . . . . : 
        DNS Suffix Search List. . . . . . : 
                                            

Ethernet adapter Local Area Connection:

        Connection-specific DNS Suffix  . : 
        Description . . . . . . . . . . . : 
        Physical Address. . . . . . . . . : 
        DHCP Enabled. . . . . . . . . . . : 
        Autoconfiguration Enabled . . . . : 
        IP Address. . . . . . . . . . . . : 
        Subnet Mask . . . . . . . . . . . : 
        Default Gateway . . . . . . . . . : 
        DHCP Server . . . . . . . . . . . : 
        DNS Servers . . . . . . . . . . . : 
                                            
        Lease Obtained. . . . . . . . . . : 
        Lease Expires . . . . . . . . . . : 
As well as the info for all your other connections if used (dial-up, multi-NIC)

Obviously depending what he wants to do, it may be better as you noted, to use API's


- Brian


>looks like ipconfig works on win2k, but, probably not on NT - that's why I was using netstat /r. What are the API functions you would use to do this?
>>That works - but it's a bit messy.. and winnt/2k doesnt use ipconfig.. API functions are the solution - through C style calls to DLL's..if you really need this stuff - let me know, i'll put an example together for you..
>>
>>cheers


VFP6 SP5, VFP8 SP1, VFP 9 SP 1 and Win XP SP 3 (unless otherwise specified)


www.wulfsden.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform