查看公网IP 用下面几个命令: curl ifconfig.me curl icanhazip.com curl cip.cc 查看内网IP ifconfig (Linux\macOS) ipconfig (windows)