根据外网IP获取地址

上传:gaoshouawxdcff 浏览: 61 推荐: 0 文件:CS 大小:5.74KB 上传时间:2018-12-28 12:44:45 版权申诉
须下载QQip数据库“QQWry.Dat” 调用方式如下: //string ipfilePath = @"C:\Program Files\Tencent\QQ\Bin\QQWry.Dat"; //IPSearch ipSearch = new IPSearch(ipfilePath); //string ip = CommHelper.GetWebIp();//"72.51.27.51"; //IPSearch.IPLocation loc = ipSearch.GetIPLocation(ip); //Console.WriteLine("你查的ip是:{0} 地理位置:{1} {2}", ip, loc.country, loc.area);
上传资源
用户评论