static void Main(string[] args)
{
var req = WebRequest.Create("http://checkip.dyndns.org");
string reqstring;
using (var reader = new StreamReader(req.GetResponse().GetResponseStream()))
{
reqstring = reader.ReadToEnd();
}
string[] a = reqstring.Split(':');
string a2 = a[1].Substring(1);
string[] a3 = a2.Split('<');
string ip = a3[0];
Console.WriteLine(ip);
Console.ReadLine();
}