1.linux(centos)查看公网/外网ip:
curl ifconfig.me #inconfig.me是一个网站来的
#或者,如果上面的无法访问
curl icanhazip.com
2.Windows查看ip:
登陆http://ip.cn/,即可查看
1.linux(centos)查看公网/外网ip:
curl ifconfig.me #inconfig.me是一个网站来的
#或者,如果上面的无法访问
curl icanhazip.com
2.Windows查看ip:
登陆http://ip.cn/,即可查看
转载于:https://www.cnblogs.com/Skrillex/p/6893138.html