码迷,mamicode.com
首页 > 其他好文 > 详细

获取外网ip地址

时间:2018-08-20 14:34:35      阅读:150      评论:0      收藏:0      [点我收藏+]

标签:tail   地址   blank   taobao   https   gray   搜狐   .com   net   

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地址

标签:tail   地址   blank   taobao   https   gray   搜狐   .com   net   

原文地址:https://www.cnblogs.com/pinweyshg/p/9505176.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!