linux shell查看当前外网IP
2015-09-28 08:54
686 查看
功能飞铲更简单,只是获取外网IP。部分网站针对curl 的ua进行处理。
满足了一下自己的搜集癖,搜集了不少可以用来查询外网IP的网址和方法。
#国内某网站的接口,只返回IP curl ip.6655.com/ip.aspx curl whatismyip.akamai.com #更多用法访问ifconfig.co wget -qO - ifconfig.co curl icanhazip.com dig +short myip.opendns.com @resolver1.opendns.com curl ident.me curl v4.ident.me curl v6.ident.me #慢 curl curlmyip.com curl ifconfig.me curl inet-ip.info #返回IP和地区 curl ip.6655.com/ip.aspx?area=1 curl 1111.ip138.com/ic.asp curl ip.cn curl cip.cc #需要翻x墙,只返回IP curl ip.appspot.com #参考 http://unix.stackexchange.com/questions/22615/how-can-i-get-my-external-ip-address-in-bash #有人给了以下测试方法 wget https://raw.githubusercontent.com/rsp/scripts/master/externalip-benchmark chmod a+x externalip-benchmark ./externalip-benchmark
您可能感兴趣的文章:
相关文章推荐
- Linux socket 初步
- android wifi 无线调试
- linux lsof详解
- 10 篇对初学者和专家都有用的 Linux 命令教程
- Linux 与 Windows 对UNICODE 的处理方式
- Ubuntu12.04下QQ完美走起啊!走起啊!有木有啊!
- 解決Linux下Android开发真机调试设备不被识别问题
- 运维入门
- 运维提升
- Linux 自检和 SystemTap
- 动态清空 nohup 输出文件
- install scrapy with pip and easy_install
- Ubuntu Linux使用体验
- c语言实现hashmap(转载)
- Linux 信号signal处理机制
- linux下mysql添加用户
- Scientific Linux 5.5 图形安装教程
- 基于 Linux 集群环境上 GPFS 的问题诊断