943,843 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Marked Solved
  • Views: 4231
  • C# RSS
May 8th, 2009
0

Listing IP addresses of network computers

Expand Post »
We are developing a client monitoring network application.
We would require IP addresses of all the computers in the network.

how do we retrieve these IP addresses ?
I have already seen some code that makes use of unmanaged C++ or WinAPI.
But I would prefer C# code (ofcourse). I went through some System.Net classes like Dns; but could not crack a way through.

Could anyone provide me some hints to my question?
Similar Threads
Reputation Points: 10
Solved Threads: 1
Junior Poster in Training
Bhoot is offline Offline
53 posts
since Oct 2008
May 8th, 2009
0

Re: Listing IP addresses of network computers

i do this to get the current computer maybe look for something like this.
Dim IPAddress as String = Request.ServerVariables.Get("REMOTE_ADDR")
that is vb, c# is almost the same.
Reputation Points: 56
Solved Threads: 56
Posting Pro in Training
jbisono is offline Offline
432 posts
since May 2009
May 8th, 2009
0

Re: Listing IP addresses of network computers

Maybe this snippet might get you some ideas:
http://www.daniweb.com/code/snippet982.html
Reputation Points: 2035
Solved Threads: 644
Senior Poster
ddanbe is online now Online
3,738 posts
since Oct 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: [C#] Help - Accepting Shortcut Arguments
Next Thread in C# Forum Timeline: Hi All





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC