获取外网ip/公网ip方法

使用淘宝api获取公网ip
.

0

linux命令:curl http://ip.taobao.com/service/getIpInfo2.php?ip=myip http://ip.taobao.com/service/getIpInfo2.php?ip=myip curl curl http://ip.taobao.com/service/getIpInfo2.php?ip=myiprootopen.com
linux命令:curl http://ip.taobao.com/service/getIpInfo2.php?ip=myip http://ip.taobao.com/service/getIpInfo2.php?ip=myip curl curl http://ip.taobao.com/service/getIpInfo2.php?ip=myiprootopen.com
nmcp 2018-07-15 16:03:41
输出
{"code":0,"data":{
"ip":"172.93.47.106",
"country":"美国",
"area":"",
"region":"加利福尼亚",
"city":"洛杉矶",
"county":"XX",
"isp":"XX",
"country_id":"US",
"area_id":"",
"region_id":"US_104",
"city_id":"US_1018",
"county_id":"xx","isp_id":"xx"}}

评论

相关推荐
共收录0条命令行
这里是记录和分享命令行的地方, 所有命令行都可以进行评论、提交替代方案.

热门文章