Solved

List all network computer by thier IP addresses?

Posted on 2007-11-13
4
1,567 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
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

763 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