ramprabu
02-26-2007, 02:00 AM
How to get all the IP addresses in a network?
|
Click to See Complete Forum and Search --> : Network ip address ramprabu 02-26-2007, 02:00 AM How to get all the IP addresses in a network? Ribeyed 02-26-2007, 12:10 PM Hi, not sure if this will help you but the following code retrieves the IP address for the local machine: 'Look up the host name and IP Address. HostName = System.Net.Dns.GetHostName() IPAddress = System.Net.Dns.GetHostEntry(HostName).AddressList(0).ToString() Response.Write("Host Name: " & HostName & "<BR>") Response.Write("IP Address: " & IPAddress) this code will ping an ip address: lblResults.Text = PingUtility.Pinger.GetPingTime(Me.txtAddress.Text) If you find the range of IP's on your network you can ping them to make sure they are there. webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |