云服务器查看外网IP地址方法

#返回IP地址
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

#返回IP和地区 
1.curl ip.cn 
2.curl cip.cc

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

猜你喜欢

转载自www.cnblogs.com/egrep/p/9361693.html