Solved

List all network computer by thier IP addresses?

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

758 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now