
Free Beta OCX Gets all IP Configuration Information
I am looking for developers to beta test a new ActiveX code component that
exposes all IP configuration information from Windows 9x or Windows NT. Code
named "Bandit," the component gives programmers immediate access to:
--ip address
--subnet mask
--broadcast address
--dns servers
--wins servers,
--wins proxy state
--dhcp servers
--lease date and expiration
--NetBIOS Name
--host name
--physical (MAC) address
--ip routing state
--scope id
--default gateway
--NetBIOS resolution w/DNS status
--adapter type and description
...In short, everything you can get with "ipconfig /all." (Well, almost
everything. The current beta version only retrieves the first DNS server.)
If there are multiple network adapters present in a system, and/or the
system is currently dialed into an ISP or VPN, the component returns *all*
data for *all* adapters. It can also be told which to regard as the
"default" adapter.
Upon initialization, the number of adapters in the system may be found in
Bandit1.Adapters. Next, getting configuration data is easy:
With Bandit1
.Adapter=2
If .Type="ppp" then
myIP$= .LocalIP
myMask$= .SubnetMask
myGateway$= .Gateway
myDNS$= .DnsServer
myWins1$= .Wins1
myWins2$= .Wins2
myComputerName$= .NetBiosName
myBroadcast$= .BcastAddress
myMacAddr$= .MacAddress
' etc...
End If
End With
If you would like to beta test this component, please e-mail
--
Eric Robinson
Consultant to the State of Nevada
Dept. of Transportation