Results 1 to 3 of 3

Thread: get ip of all pc in a network

  1. #1

    Thread Starter
    Hyperactive Member demon.KILER's Avatar
    Join Date
    Jul 2006
    Location
    I cannot remember !?
    Posts
    408

    Question get ip of all pc in a network

    hi all how can I get ip of all pc in a network

    I know its posible because I did it once but now I forgot

    thx
    VS 2005 .....Framework SDK 3.0

    "Its mostly the brave one who choose to not fight"

  2. #2
    Member
    Join Date
    Jul 2006
    Posts
    47

    Re: get ip of all pc in a network

    To get the ip address of a machine of which you know the name, you can use the gethostbyname api function as demonstrated on this page

    http://vbnet.mvps.org/code/network/iplookup.htm

    If you don't know the machine names of each computer in the network then you can get a list of all the current machines in the domain by using the NetServerEnum api function as demonstrated on this page

    http://vbnet.mvps.org/code/network/netserverenum.htm

  3. #3

    Thread Starter
    Hyperactive Member demon.KILER's Avatar
    Join Date
    Jul 2006
    Location
    I cannot remember !?
    Posts
    408

    Re: get ip of all pc in a network

    thx I will try that
    VS 2005 .....Framework SDK 3.0

    "Its mostly the brave one who choose to not fight"

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