本文主要是介绍shell花样获取外网ip,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
shell花样获取外网ip
httpbin_ip=`curl "http://httpbin.org/get" |jq .origin|sed 's/\"//g'`
ip42pl_ip=`curl https://ip.42.pl/raw`
jsonip_ip=`curl "https://jsonip.com/"|jq .ip|sed 's/\"//g'`
ipify_ip=`curl https://api.ipify.org/`
ifconfigme_ip=`curl https://ifconfig.me/ip `
ipwcn_ip=`curl https://ipv4.ipw.cn/api/ip/myip`
- [ ] curl ip.sb
- [ ] curl ifconfig.me
- [ ] curl icanhazip.com
- [ ] curl curlmyip.com
- [ ] curl ip.appspot.com
- [ ] curl ipinfo.io/ip
- [ ] curl ipecho.net/plain
- [ ] curl www.trackip.net/i
curl ifconfig.me
curl icanhazip.com
curl curlmyip.com
curl ip.appspot.com
curl ipinfo.io/ip
curl ipecho.net/plain
curl www.trackip.net/i
#补充
curl ip.sb
curl ip.6655.com/ip.aspx
curl whatismyip.akamai.com
wget -qO - ifconfig.co
dig +short myip.opendns.com @resolver1.opendns.com
curl ident.me
curl v4.ident.me
curl v6.ident.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
这篇关于shell花样获取外网ip的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!