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?

Recommended Answers

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.

Jump to Post

All 2 Replies

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.