功能飛鏟更簡(jiǎn)單,只是獲取外網(wǎng)IP。部分網(wǎng)站針對(duì)curl 的ua進(jìn)行處理。
滿足了一下自己的搜集癖,搜集了不少可以用來查詢外網(wǎng)IP的網(wǎng)址和方法。
#國(guó)內(nèi)某網(wǎng)站的接口,只返回IPcurl ip.6655.com/ip.aspxcurl whatismyip.akamai.com#更多用法訪問ifconfig.cowget -qO - ifconfig.co curl icanhazip.comdig +short myip.opendns.com @resolver1.opendns.com curl ident.mecurl v4.ident.mecurl v6.ident.me#慢curl curlmyip.com curl ifconfig.mecurl inet-ip.info #返回IP和地區(qū)curl ip.6655.com/ip.aspx?area=1curl 1111.ip138.com/ic.aspcurl ip.cncurl cip.cc #需要翻x墻,只返回IPcurl ip.appspot.com #參考 http://unix.stackexchange.com/questions/22615/how-can-i-get-my-external-ip-address-in-bash#有人給了以下測(cè)試方法 wget https://raw.githubusercontent.com/rsp/scripts/master/externalip-benchmarkchmod a+x externalip-benchmark./externalip-benchmark
新聞熱點(diǎn)
疑難解答
網(wǎng)友關(guān)注