局域网的服务器是通过ADSL路由器连接外网的,但ADSL是从ISP运营商那儿通过动态获得IP的,那么我怎么知道自己的外网地址是多少呢?
今天得到几个办法:
curl -s http://whatismyip.org
wget http://whatismyip.org 然后再  cat index.html 也可以看到

posted on 2013-07-13 10:44  孤剑  阅读(290)  评论(0编辑  收藏  举报