在搭建环境时, 我们需要搭建公网 IP 地址, 因此我们可以使用以下命令查看公网 IP 地址
curl ifconfig.me
同时我们可以通过以下命令查看公网地址
curl cip.cc
来源: http://www.bubuko.com/infodetail-3038704.html