string myIP = Dns.GetHostAddresses(Dns.GetHostName())[0].Address.ToString();
string Myhost = System.Net.Dns.GetHostName(); string myIP = System.Net.Dns.GetHostAddresses(Myhost)[0].Address.ToString();