本机是内网IP,没有配置公网IP时,可以通过以下命令,知道自己的公网IP:
 
curl http://www.ip138.com/ip2city.asp 2>/dev/null |grep '\[*\]' |cut -d "[" -f2 |cut -d "]" -f1