2022
我们一起努力

linux shell查看当前外网IP(linux查看当前shell)

功能飞铲更简单,只是获取外网IP。部分网站针对curl 的ua进行处理。

满足了一下自己的搜集癖,搜集了不少可以用来查询外网IP的网址和方法。

<pre
class=”brush:bash;”>
#国内某网站的接口,只返回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

#参考 /uploads/tupian/20220823/rj43pe3d235
#有人给了以下测试方法

wget /uploads/tupian/20220823/wz1jclsnvf2
chmod a+x externalip-benchmark
./externalip-benchmark

<
p>

本文从互联网转载,来源地址:www.downzz.com/linux-shell/171054.html,原作者保留一切权利,若侵权或引用不当,请联系茶猫云(cmy.cn)删除。【茶猫云,优质云服务器提供商】

赞(0)
文章名称:《linux shell查看当前外网IP(linux查看当前shell)》
文章链接:https://www.fzvps.com/35511.html
本站文章来源于互联网,如有侵权,请联系管理删除,本站资源仅供个人学习交流,请于下载后24小时内删除,不允许用于商业用途,否则法律问题自行承担。
图片版权归属各自创作者所有,图片水印出于防止被无耻之徒盗取劳动成果的目的。

相关推荐

  • 暂无文章

评论 抢沙发

评论前必须登录!