|
-
Jul 17th, 2000, 04:52 PM
#1
Thread Starter
Lively Member
If I have 2 network card and a modem in a pc. How can I find out what IP address is bound to each device?
-
Jul 17th, 2000, 04:57 PM
#2
Hyperactive Member
You look inside your brain, and try to remember what IP you assigned both cards (which is done from the software).
If you run windows, right-click on Network, the Properties, then choose tcp/ip and check properties for that oto.
Signed, Rodik ([email protected])
Programmer,usesVB6ED
===========================
Copyright©RodikCo,2002.
Dont mind this signature ;] Its old
-
Jul 17th, 2000, 08:48 PM
#3
Thread Starter
Lively Member
This being a VB forum, I was hoping to find a way to do this through code. But thank you for your intelligent reply.
-
Jul 17th, 2000, 09:00 PM
#4
Hyperactive Member
Well, you can't!
Unless you write your own network driver that is (which can't be done in vb) of course. Winsock will only connect to specified ports.
If you learn how to use Api to send messages trough the windows network drivers, you might be able to send a out a BroadCast (or possibly a MultiCast) to the network in hope that all other network devices respond. Of course, you'll only end up with their Mac-adress which you'd have to connect to manually (which isn't easy) and ask for the ip.
Or you could let your program ping with a winsock all possible ip's (that's 4228250625 of them) until all have answered and then you know.
Signed, Rodik ([email protected])
Programmer,usesVB6ED
===========================
Copyright©RodikCo,2002.
Dont mind this signature ;] Its old
-
Jul 17th, 2000, 09:04 PM
#5
Thread Starter
Lively Member
Thanks Dim. That works, but it only returns me one of the ip addresses assigned to the machine.
-
Jul 17th, 2000, 11:17 PM
#6
Fanatic Member
run the dos command
on NT
IPCONFIG
or on Win9x
i think its winipcfg
Kurt Simons
[I know I'm a hack but my clients don't!]
-
Aug 28th, 2000, 10:12 PM
#7
New Member
Multiply Network Adaptors and IP adresses
Try the ActiveX control from http://www.Catalyst.com called
SOCKETWRENCH
It provides properties such as .AdaptorAddress(Index) and
.AdaptorCount
This allows you to not only find out the IP address for each network adaptor (including dial-up) but you can then BIND the control to that network adaptor to enable network comms similar to other socket controls.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|