您现在的位置是:网站首页> 编程资料编程资料
linux shell查看当前外网IP_linux shell_
2023-05-26
351人已围观
简介 linux shell查看当前外网IP_linux shell_
功能飞铲更简单,只是获取外网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
您可能感兴趣的文章:
相关内容
- 建立基于虚拟用户的VSftpd服务_linux shell_
- Linux中搭建FTP服务器的方法_linux shell_
- Linux系统中掩耳盗铃的sudo配置_linux shell_
- Linux中使用expect脚本实现远程机器自动登录_linux shell_
- linux下ssh安装与scp命令使用详解_linux shell_
- 在Linux下用scp复制文件无需输入密码的技巧_linux shell_
- linux下mysql如何自动备份shell脚本_linux shell_
- linux中scp命令和scp命令用法大全_linux shell_
- Linux Shell脚本编程初体验_linux shell_
- scp命令详解(全)_linux shell_
