【方法】:
linux 机器:执行curl https://ip.cn 或 http://ip.cn 或 http://members.3322.org/dyndns/getip
windows机器,浏览器访问https://ip.cn 或 http://members.3322.org/dyndns/getip
注意:
1)服务器有多个出口IP, 可根据不同的链路,动态使用的出口ip也不同.
2)http://members.3322.org/dyndns/getip 方式可能会存在实际出入.
3)推荐使用:curl https://ip.cn 或 http://ip.cn
版权声明:本文为fubaojiexing原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。