查看當前外網(wǎng)IP

#滿足了一下自己的搜集癖,搜集了不少可以用來查詢外網(wǎng)IP的網(wǎng)址和方法。

#國內(nèi)某網(wǎng)站的接口,只返回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

#慢

curlcurlmyip.com

curl ifconfig.me

curl inet-ip.info

#返回IP和地區(qū)

curl ip.6655.com/ip.aspx?area=1

curl 1111.ip138.com/ic.asp

curl ip.cn

curl cip.cc

#需要翻墻,只返回IP

curl ip.appspot.com

#參考http://unix.stackexchange.com/questions/22615/how-can-i-get-my-external-ip-address-in-bash

#有人給了以下測試方法

wget https://raw.githubusercontent.com/rsp/scripts/master/externalip-benchmark

chmod a+x externalip-benchmark

./externalip-benchmark

最后編輯于
?著作權歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內(nèi)容