1. 方案一:curl ip.cn

  2. 方案二:curl cip.cc

ip.cn ipinfo.io cip.cc ifconfig.me myip.ipip.net