Home>

The function flying shovel is simpler,Just get the extranet ip. Some websites deal with ua of curl.

Satisfied my collection habit,Collected a lot of URLs and methods that can be used to query the Internet IP.

#Interface of a domestic website,Return only ip
curl ip.6655.com/ip.aspx
curl whatismyip.akamai.com
#More usage visit ifconfig.co
wget -qo-ifconfig.co
curl icanhazip.com
dig + short [email protected]
curl ident.me
curl v4.ident.me
curl v6.ident.me
#slow
curl curlmyip.com
curl ifconfig.me
curl inet-ip.info
#Return ip and region
curl ip.6655.com/ip.aspx?area=1
curl 1111.ip138.com/ic.asp
curl ip.cn
curl cip.cc
#Need to turn x wall, only return ip
curl ip.appspot.com
#Reference http://unix.stackexchange.com/questions/22615/how-can-i-get-my-external-ip-address-in-bash
#Someone gave the following test method
wget https://raw.githubusercontent.com/rsp/scripts/master/externalip-benchmark
chmod a + x externalip-benchmark
./externalip-benchmark
  • Previous Summary of ThinkPHP data manipulation methods
  • Next JQuery + Ajax for data query, sorting and paging