using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Security;
using System.Security.Cryptography.X509
Certificates;
using System.Net;
using System.IO;
using System.IO.Compression;
using System.Text.RegularExpressions;
using System.Web.Script.Serialization;
namespace IP
{
class Program
{
static void Main(string[] args)
{
string key = "047c10b650e548a5acbc7ee1147ead6f";
string ip = "168.183.151.112";
string url = "http://apis.haoservice.com/lifeservice/queryIpAddr?ip=" + ip + "&key=" + key;
WebClient wc = new WebClient();
wc.Encoding = Encoding.UTF8;
string str = wc.DownloadString(url);
Console.WriteLine(str);
Console.ReadKey();
}
}
}