局域网的服务器是通过ADSL路由器连接外网的,但ADSL是从ISP运营商那儿通过动态获得IP的,那么我怎么知道自己的外网地址是多少呢?
今天得到几个办法:
curl -s http://whatismyip.org
wget http://whatismyip.org 然后再 cat index.html 也可以看到
今天得到几个办法:
curl -s http://whatismyip.org
wget http://whatismyip.org 然后再 cat index.html 也可以看到
本文介绍了通过curl和wget命令获取动态ADSL路由器外网地址的两种方法,并提供了实际操作步骤。
1036

被折叠的 条评论
为什么被折叠?



