Function Fly Shovel is simpler, just get the extranet IP. Some sites are processed for Curl UA.
Meet their own collection of addiction, collected a lot can be used to query the Internet IP URLs and methods.
#国内某网站的接口, only return 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 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
#需要翻x墙, return only 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