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

软件发布|下载排行|最新软件

当前位置:首页IT学院IT技术

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

  2021-03-20 我要评论
想了解linux shell查看当前外网IP的相关内容吗,在本文为您仔细讲解linux shell查看当前外网IP的相关知识和一些Code实例,欢迎阅读和指正,我们先划重点: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

猜您喜欢

Copyright 2022 版权所有 软件发布 访问手机版

声明:所有软件和文章来自软件开发商或者作者 如有异议 请与本站联系 联系我们