有没有 linux 命令可以获取我的公网 ip, 类似 ip138.com 上获取的 ip?

curl ipinfo.io
curl ifconfig.me


阿里云 :139.129.242.131
赤峰:   219.159.38.197
开平:   221.194.113.146
定州:  121.18.179.84
辽阳 :60.18.161.150
西宁城中区:125.72.102.82
合肥幼儿师专: 221.130.159.79 

#国内某网站的接口,只返回IP
curl ip.6655.com/ip.aspx
curl whatismyip.akamai.com
#更多用法访问ifconfig.co
wget -qO - ifconfig.co
 
curl icanhazip.com
dig +short myip.opendns.com @resolver1.opendns.com
 
curl ident.me
curl v4.ident.me
curl v6.ident.me
#
curl curlmyip.com 
curl ifconfig.me
curl inet-ip.info
 
 
#返回IP和地区
curl ip.6655.com/ip.aspx?area=1
curl 1111.ip138.com/ic.asp
curl ip.cn
curl cip.cc

猜你喜欢

转载自www.cnblogs.com/littlehb/p/9125812.html
今日推荐