版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/dujianxiong/article/details/88125404
1、不用指定ip参数
实践中发现,可能会取到代理服务器的地址,导致不准确
2、指定ip参数:
http://whois.pconline.com.cn/ipJson.jsp?ip=157.122.63.168&json=true
http://ip-api.com/json/115.191.200.34?lang=zh-CN
http://ip.taobao.com/service/getIpInfo.php?ip=157.122.63.168