linux shell查看当前外网IP
功能飞铲更简单,只是获取外网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/Nginx如何查看搜索引擎蜘蛛爬虫的行为
栏 目:其它服务器
本文标题:linux shell查看当前外网IP
本文地址:https://zz.feitang.co/server/34988.html
您可能感兴趣的文章
- 01-06nginx从安装到配置详细说明(安装,安全配置,防盗链,动静分离,配置 HTTPS,性能优化)
- 01-06Nginx性能优化之Gzip压缩设置详解(最大程度提高页面打开速度)
- 01-06Linux系统 Centos7.4手动在线升级到Centos7.7
- 01-06详解nginx安装过程并代理下载服务器文件
- 01-06shell脚本根据进程查找指定容器的方法
- 01-06微服务架构拆分策略详解
- 01-06使用 Apache Dubbo 实现远程通信(微服务架构)
- 01-06微服务架构之服务注册与发现功能详解
- 01-06使用Zabbix 5.4.3监控IPMI的方法
- 01-06微服务架构之服务注册与发现实践示例详解






