How can i get all IP addresses which connected in LAN using ASP.NET
// Private Function GetIP4Address() As String
Dim IP4Address As String = [String].Empty
For Each IPA As IPAddress In Dns.GetHostAddresses(Dns.GetHostName())
If IPA.AddressFamily.ToString() = "InterNetwork" Then
IP4Address = IPA.ToString()
// I'm using this function but it returns only my IP address.
Please help me...
Thanks in advance...
The first thing you ought to learn is: differenciate between code executed on the server and code executed on the client (user site).
You say you are using ASP.NET - just think: where is that code executed?