Solved

List all network computer by thier IP addresses?

Posted on 2007-11-13
4
1,572 Views
Last Modified: 2010-08-05
I cannot locate any code on the Internet that lists all network computer by thier IP addresses.

Help
0
Comment
Question by:kvnsdr
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 1

Author Comment

by:kvnsdr
ID: 20277635
Also, using .NET namespaces without having to import Windows dlls.
0
 
LVL 2

Accepted Solution

by:
HeidarV earned 125 total points
ID: 20278180
hi
you can use Ping like bellow and ping all computers in the range of yours and look for replies.

System.Net.NetworkInformation.Ping ping = new Ping();
for (int i = 0; i < 255; i++)
{
      PingReply pr = ping.Send(new IPAddress(new byte[] { 192, 168, 1, i }));
      if (pr.Status == IPStatus.Success)
            list1.Add(pr.Address.ToString());
}
0
 
LVL 4

Assisted Solution

by:kjetilroe
kjetilroe earned 125 total points
ID: 20278936
Hi,

Not all computers answers to ping. If you are sitting in a windows workgroup, or domain, you can list all computers in that nettwork using this example:

http://www.codeproject.com/cs/internet/peerlister.asp
0
 
LVL 1

Author Comment

by:kvnsdr
ID: 20279341
I'll wait for some other possible solutions too...
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

626 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question