To Find IP Address
you can use this code
first up all include
System.Net namespace and then write the given code
string str = Environment.MachineName.ToString();
IPHostEntry ipe = Dns.GetHostByName(str);
Console.WriteLine("Your IP address is : ");
for (int i = 0; i < ipe.AddressList.Length; i++)
{
Console.WriteLine(ipe.AddressList[i]);
}