Results 1 to 6 of 6

Thread: Getting IP Address

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 1999
    Location
    flanders, nj 07836
    Posts
    110

    Question

    How do I get all IP address of the current machine?

    I tried being lazy and using the inet control with the .hostip but obvioius that only returns one address.

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Do you mean the IP addresses of all network adapters?
    It's in the Winsock API somewhere. Check MSDN / planetsourcecode for more details.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    msgbox Winsock.Localip

    the api one is about 100 lines, I like the one liner

  4. #4

    Thread Starter
    Lively Member
    Join Date
    May 1999
    Location
    flanders, nj 07836
    Posts
    110

    Parskie, a network adapater is just that.. a "channel" of where information goes, this can be a physical NIC or a virtual dr like a DUN connection (PPP ADAPTER).. I will look for the code..

    Steve: Learn to read the msg in full before replying.

  5. #5
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    Woops, sorry

  6. #6
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    Okay Im going to take another shot at this...you can have a small program on each machine that figures out its own IP address and sends it to every other machine on the network. Really sorry If this still doesn't help you.

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