1
2
3
4
5
6
curl ifconfig.me
curl http://members.3322.org/dyndns/getip

# 保存到文件 
wget http://ifconfig.me/ip
wget http://members.3322.org/dyndns/getip

http://blog.csdn.net/teddy17/article/details/12618035