获取外网ip地址
Posted pinweyshg
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了获取外网ip地址相关的知识,希望对你有一定的参考价值。
1. 搜狐
接口:http://pv.sohu.com/cityjson?ie=utf-8
返回:var returnCitySN = {"cip": "110.53.253.181", "cid": "430100", "cname": "湖南省长沙市"};
2. 淘宝(有点慢)
接口:http://ip.taobao.com/service/getIpInfo.php?ip=myip
返回:{"code":0,"data":{"ip":"110.53.253.181","country":"中国","area":"","region":"湖南","city":"长沙","county":"XX","isp":"联通","country_id":"CN","area_id":"","region_id":"430000","city_id":"430100","county_id":"xx","isp_id":"100026"}}
https://www.jianshu.com/p/8153bb06e7e2
https://blog.csdn.net/txz_gray/article/details/53217293
以上是关于获取外网ip地址的主要内容,如果未能解决你的问题,请参考以下文章