2025年查询Linux外网IP

查询Linux外网IP1 使用 curl 命令 curl ifconfig me 2 使用 wget 命令 wget qO ifconfig io ip 3 使用 nslookup 命令 nslookup myip opendns com resolver1 opendns com 4 使用 ip 命令 curl s https ipinfo io ip xargs n1 ip addr

大家好,我是讯享网,很高兴认识大家。
1. 使用curl命令 curl ifconfig.me 2. 使用wget命令 wget -qO- ifconfig.io/ip 3. 使用nslookup命令 nslookup myip.opendns.com resolver1.opendns.com 4. 使用ip命令 curl -s https://ipinfo.io/ip | xargs -n1 ip addr | grep inet | grep -v inet6 | awk '{print $2}' | sed 's/\/.*//' 注释:第四种方式个人测试不太准确

讯享网


讯享网

小讯
上一篇 2025-01-09 09:43
下一篇 2025-03-03 10:44

相关推荐

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请联系我们,一经查实,本站将立刻删除。
如需转载请保留出处:https://51itzy.com/kjqy/53782.html