Linux系统curl获取公网ip

收集了几个查询当前公网ip的网址,可以通过curl命令方便的查看

curl cip.cc
curl ipinfo.io
curl myip.ipip.net
curl http://members.3322.org/dyndns/getip
curl https://ip.cn
curl httpbin.org/ip
curl ip.sb
curl whatismyip.akamai.com
curl ipecho.net/plain
curl icanhazip.com ##淘宝
curl -s http://ip.taobao.com/service/getIpInfo2.php?ip=myip | awk -F"ip" '{print $2}' | awk -F'"' '{print $3}' curl -s ifcfg.cn/echo | python -m json.tool

  

https://www.5yun.org/linux-xi-tong-curl-ming-ling-huo-qu-gong-wang-ip-ming-ling.html

上一篇:linux系统时间获取方式


下一篇:js 前端分页空间控件