my ip is 10.10.10.66
my subnet mask is 255.255.255.0
want to get all other computers ip address
any suggestions?
thanks in advance.
Printable View
my ip is 10.10.10.66
my subnet mask is 255.255.255.0
want to get all other computers ip address
any suggestions?
thanks in advance.
You would have to ping 10.10.10.1 - 10.10.10.255 to determine if there is a computer at that address.
Thanks for your reply.Quote:
Originally Posted by Negative0
Then how can I call the ping function in vb?
My.Computer.Network.Ping
Hey,
Have a look at this article here. It shows you exactly what you need to do in order to achieve what you want:
http://blogs.msdn.com/coding4fun/arc...31/914076.aspx
Hope this helps!!
Gary
see my signature (IP Subnet / Range). it will get all the possible IP addresses for a given network. then just ping them all.
Thanks all of you Negative0, MaximilianMayrhofer, gep13 and dbasnett.
All of your suggestions let me know how to build my solution.
Thanks!
Hello,
Have you had a look at any of the suggestions that have been given to you?
For instance, the link that I sent you shows you exactly how to build the solution, and dbasnett's link has a link directly to some code as well.
Have you tried any of the solutions? Can you post what you have tried and isn't working?
Gary
Is there any better way to achieve this. I m using vb.net 2005 ( FREE ) . Can System.Directoryservices used to get the ip addresses of all the hosts within the network?
Have a look at this article in CodeProject
http://www.codeproject.com/KB/IP/Lis...select=2517430
Once you have the list of computer names, use System.Net.Dns.GetHostEntry to resolve the IP address of each computer.
The problem with using Ping is that windows firewall blocks ICMP echo by default. So a computer can be online yet unpingable.
Hey,
In my experience, computers on the same subnet (i.e. computers connected to the domain that my computer is on) have always responded to a ping request, even with the firewall on, so I can't say that I have seen this behaviour.
Gary