Bash命令查找本机公网IP

用Bash命令查找本机公网IP

wget -qO - http://ipecho.net/plain; echo
curl https://ip.cn
curl cip.cc
curl ipinfo.io
curl myip.ipip.net
curl ifconfig.co
curl ifconfig.me
curl api.ipify.org
curl http://members.3322.org/dyndns/getip
dig TXT +short o-o.myaddr.l.google.com @ns1.google.com

原文地址:https://www.cnblogs.com/hengwei/p/9777395.html