Results 1 to 4 of 4

Thread: Network question

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2000
    Location
    Slovenia
    Posts
    32

    Question

    Hi!
    How can I find out IP of every computer connected to the local network and if possible names of those computers.
    Can anyone please post an example or at least tell me how can I get names and IP addresses?

    Thanx in advance for any answer

    Celery

    VB6 Pro SP3 - Academic Licence

  2. #2
    Fanatic Member HaxSoft's Avatar
    Join Date
    May 2000
    Location
    Ohio
    Posts
    593

    Computer Name / IP addy

    From each computer, individually, you can use the Windows API function called GetComputerName to obtain the computer name, but I am sure there is some method of getting the IP (other than WINIPCFG from the Start\Run).

    I think you should post this question in the Windows API forum. Those cool hackers must know the solution.

    Hope this helps; otherwise, write back here.

  3. #3

    Thread Starter
    Member
    Join Date
    Jun 2000
    Location
    Slovenia
    Posts
    32

    Unhappy

    Thanx for your reply HaxSoft, but that's not what I was looking for.
    I need to find out IP of every computer that is currently connected to the LAN network and display their IP or computer name in a listbox, so that user could select one and send him a message(I already know how to send messages).
    I would appreciate any anwer - with or without an examle - if anyone out there knows how to do that.

    Celery

    VB6 Pro SP3 - Academic Licence

  4. #4
    Hyperactive Member
    Join Date
    Mar 2000
    Posts
    292
    Hey, I'm not sure how much help this is, but if you do the command net view at DOS prompt I believe you get a list of all the connected computers. It may be possible to run that program and parse the results. Or you may find a better way.
    "People who think they know everything are a great annoyance to those of us who do."

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