private string ip()
{
string strHostName = "";
strHostName = System.Net.Dns.GetHostName();
IPHostEntry ipEntry = System.Net.Dns.GetHostEntry(strHostName);
IPAddress[] addr = ipEntry.AddressList;
return addr[addr.Length - 1].ToString();
}
m using this code but it return
"2001:0:4137:9e76:caa:325e:3f57:fe9b" somthing like this
So what can i do for to get correct IP Address of the system