Get the IP and Family of Systerm
Description :
Get the IP and Family of Systerm
Namespace used
using System;
using System.Net;
Following is the code to get the family ,ip address of the computer
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
foreach (string computername in args)
{
try
{
IPAddress[] IPaddresses = Dns.GetHostEntry(computername).AddressList;
foreach (IPAddress Myaddress in IPaddresses)
{
Console.WriteLine("{0} = {1} ({2})",
computername, Myaddress, Myaddress.AddressFamily);
}
}
catch (Exception ex)
{
Console.WriteLine("{0} = Error ({1})", computername, ex.Message);
}
}
}
}
}
By
Nathan

Thanks Nathan
Nice information.
Appreciative your work.