shell中用curl获取外网ip地址
来源:互联网 发布:安德罗波夫 知乎 编辑:程序博客网 时间:2024/06/09 23:53
要获取NAT之后的外网IP地址,可以用浏览器打开www.ip138.com。如果在shell里,可以用下面的方法:
$ curl ifconfig.me
$ curl ifconfig.me⇒$ curl ifconfig.me/ip⇒$ curl ifconfig.me/host⇒
$ curl ifconfig.me/ua⇒$ curl ifconfig.me/port⇒$ curl ifconfig.me/lang⇒$ curl ifconfig.me/keepalive⇒$ curl ifconfig.me/connection⇒$ curl ifconfig.me/encoding⇒$ curl ifconfig.me/mime⇒$ curl ifconfig.me/charset⇒$ curl ifconfig.me/via⇒$ curl ifconfig.me/forwarded
$ curl ifconfig.me/ua⇒$ curl ifconfig.me/port⇒$ curl ifconfig.me/lang⇒$ curl ifconfig.me/keepalive⇒$ curl ifconfig.me/connection⇒$ curl ifconfig.me/encoding⇒$ curl ifconfig.me/mime⇒$ curl ifconfig.me/charset⇒$ curl ifconfig.me/via⇒$ curl ifconfig.me/forwarded
如果想知道怎么做到的,猛击这里:http://ifconfig.me/
转载自http://www.commandlinefu.com
- shell中用curl获取外网ip地址
- shell获取IP地址
- 使用shell获取ip地址
- shell中获取ip地址
- shell 获取本地IP地址
- 获取外网IP地址
- 获取外网IP地址
- shell和python获取内网ip地址
- linux curl ip 地址
- curl伪造IP地址
- shell中获取本机ip地址
- shell脚本获取当前ip地址
- shell中获取本机ip地址
- linux shell获取本机ip地址
- Shell中获取当前IP地址
- shell 脚本获取本地ip地址方法
- xnstool 一条curl 获取ip地址和dns配置
- asp中用XMLHTTP Post获取IP所在地址
- Tomcat启动的时候出错
- 框架初映像
- Firefox 常用插件
- ihex & srec
- 使用Windows API实现两个进程间(含窗体)的通信
- shell中用curl获取外网ip地址
- virtualbox-设置共享文件夹
- T-SQL经验总结----网摘
- 面向对象与领域建模
- 在Eclipse中用Java实现百灵报表(BIRT)的事件处理
- 电话号码对应的英文单词 手机数字短信翻译小工具 数字输入法初型 需求“ya tou”咋写程序实现翻译成“丫头”,有哪位有思路的请指教。
- j2me的自画像
- 淘宝充值150,被骗惨了…呜呜呜…
- ATM取款机模拟