Results 1 to 7 of 7

Thread: IP Addresses

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Posts
    87
    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?

  2. #2
    Hyperactive Member
    Join Date
    Dec 1999
    Posts
    321
    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

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Posts
    87
    This being a VB forum, I was hoping to find a way to do this through code. But thank you for your intelligent reply.

  4. #4
    Hyperactive Member
    Join Date
    Dec 1999
    Posts
    321
    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

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Posts
    87
    Thanks Dim. That works, but it only returns me one of the ip addresses assigned to the machine.

  6. #6
    Fanatic Member
    Join Date
    Jul 2000
    Location
    Manchester NH
    Posts
    833
    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!]

  7. #7
    New Member
    Join Date
    Aug 2000
    Posts
    1

    Thumbs up 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
  •  



Click Here to Expand Forum to Full Width