I'm building a C# application, and i have this method:
private string GetIP()
string strHostName = "";
strHostName = Dns.GetHostName();
IPHostEntry ipEntry = Dns.GetHostEntry(strHostName);
IPAddress addr = ipEntry.AddressList;
return addr[addr.Length - 1].ToString();
The problem is that it returns my Internal IP (my IP on the local network) and not my External IP..
How can i get my external IP?
View Complete Post