|
-
Mar 6th, 2009, 09:42 PM
#1
Thread Starter
Junior Member
Find All IP on same Subnet
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.
-
Mar 6th, 2009, 09:56 PM
#2
Re: Find All IP on same Subnet
You would have to ping 10.10.10.1 - 10.10.10.255 to determine if there is a computer at that address.
-
Mar 6th, 2009, 11:38 PM
#3
Thread Starter
Junior Member
Re: Find All IP on same Subnet
 Originally Posted by Negative0
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.
Then how can I call the ping function in vb?
-
Mar 7th, 2009, 02:37 AM
#4
Re: Find All IP on same Subnet
-
Mar 7th, 2009, 04:40 AM
#5
Re: Find All IP on same Subnet
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
-
Mar 7th, 2009, 06:57 AM
#6
Re: Find All IP on same Subnet
see my signature (IP Subnet / Range). it will get all the possible IP addresses for a given network. then just ping them all.
-
Mar 10th, 2009, 08:32 PM
#7
Thread Starter
Junior Member
Re: Find All IP on same Subnet
Thanks all of you Negative0, MaximilianMayrhofer, gep13 and dbasnett.
All of your suggestions let me know how to build my solution.
Thanks!
-
Mar 11th, 2009, 02:29 AM
#8
Re: Find All IP on same Subnet
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
-
May 5th, 2009, 12:30 PM
#9
Member
Re: Find All IP on same Subnet
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?
-
May 5th, 2009, 03:59 PM
#10
Re: Find All IP on same Subnet
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.
Let us have faith that right makes might, and in that faith, let us, to the end, dare to do our duty as we understand it.
- Abraham Lincoln -
-
May 6th, 2009, 12:41 AM
#11
Re: Find All IP on same Subnet
 Originally Posted by saechira
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?
Hey,
What do you mean by "better"? What is wrong with the approach that has been suggested?
Gary
-
May 6th, 2009, 08:24 AM
#12
Re: Find All IP on same Subnet
The problem with using Ping is that windows firewall blocks ICMP echo by default. So a computer can be online yet unpingable.
Let us have faith that right makes might, and in that faith, let us, to the end, dare to do our duty as we understand it.
- Abraham Lincoln -
-
May 6th, 2009, 08:37 AM
#13
Re: Find All IP on same Subnet
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
-
May 7th, 2009, 07:43 AM
#14
Re: Find All IP on same Subnet
 Originally Posted by gep13
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
Only if a rule is set manually in the firewall to allow ICMP echo request; and it appears that your IT guys already did that when they set up new computers.
Let us have faith that right makes might, and in that faith, let us, to the end, dare to do our duty as we understand it.
- Abraham Lincoln -
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|