终端查询公网ip 转:https://blog.csdn.net/qq_42992919/article/details/94616680 终端执行命令: curl cip.cc 据观察这是最简便实用的方式。