Click to See Complete Forum and Search --> : get ip of all pc in a network
demon.KILER
Mar 2nd, 2007, 11:19 AM
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 :eek:
thx
Lozzenger
Mar 5th, 2007, 10:44 AM
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
demon.KILER
Mar 5th, 2007, 11:23 AM
thx I will try that
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.