I have a computer on the local network, behind a NAT router. I have some 192.168.0.x addresses, but I really want to know my public IP address, not somethin
I prefer http://icanhazip.com. It returns a simple text string. No HTML parsing required.
string myIp = new WebClient().DownloadString(@"http://icanhazip.com").Trim();