Anil Jain Blogs
Saturday, December 4, 2010
Get-IP-address-all-computers-under-network
using System.Net;
string hostName = System.Net.Dns.GetHostName();
System.Net.IPHostEntry IpAddress = System.Net.Dns.GetHostEntry(hostName);
foreach(System.Net.IPAddress Ip in IpAddress.AddressList)
{
MessageBox.Show(Ip.ToString());
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment