have you tried with this
var name = Dns.GetHostName();
var entry = Dns.GetHostEntry(name);
foreach (var address in entry.AddressList) {
Console.WriteLine(address);
}
If still you are not convinces then have a look onto this as well
string ip = System.Net.WebClient.DownloadString("http://whatismyip.org/");