云服务器查看外网ip的方法(转载)

原文链接:http://blog.51cto.com/11736068/2057076
curl ip.6655.com/ip.aspx 
curl whatismyip.akamai.com 
wget -qO - ifconfig.co 
curl icanhazip.com 
dig +short myip.opendns.com @resolver1.opendns.com 
curl ident.me 
curl v4.ident.me 
curl curlmyip.com 
curl ifconfig.me 
curl inet-ip.info

#需要翻x墙,只返回IP

curl ip.appspot.com

 

#有人给了以下测试方法

wget https://raw.githubusercontent.com/rsp/scripts/master/externalip-benchmark 
chmod a+x externalip-benchmark ./externalip-benchmark

 

#返回IP和地区 

curl ip.cn 
curl cip.cc

以上为可以用来查询外网IP的网址和方法。

posted @ 2018-08-07 17:14  海绵般汲取  阅读(890)  评论(0)    收藏  举报