1、獲取外網IP地址
地址:
http://pv.sohu.com/cityjson?ie=utf-8
返回結果:
var returnCitySN = {"cip": "39.***.***.***", "cid": "370000", "cname": "山東省"};
2、獲取IP地址詳細信息
地址:
http://ip.taobao.com/service/getIpInfo.php?ip=39.***.***.***
返回結果:
{
"code": 0,
"data": {
"ip": "39.***.***.***",
"country": "中國",
"area": "",
"region": "山東",
"city": "青島",
"county": "XX",
"isp": "聯通",
"country_id": "CN",
"area_id": "",
"region_id": "370000",
"city_id": "370200",
"county_id": "xx",
"isp_id": "100026"
}
}