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?

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 meeting, networking, learning, and sharing knowledge.