牛栏山

一个讨厌CSDN的家伙

导航

命令行获取外网ip方式

#优选

查询本机外网IPv4地址

curl 4.ipw.cn

查询本机外网IPv6地址
curl 6.ipw.cn

测试网络是IPv4还是IPv6访问优先(访问IPv4/IPv6双栈站点,如果返回IPv6地址,则IPv6访问优先)
curl test.ipw.cn

#返回IP curl ip.sb
curl ip.gs
curl ipip.ooo curl
ifconfig.me curl ifconfig.io curl ifconfig.co
curl ifconfig.es
curl ifconfig.pro curl icanhazip.com curl ipinfo.io
/ip curl ipecho.net/ip curl ident.me curl inet-ip.info
curl eth0.me
curl ipaddr.site
curl ipaddress.sh

curl l2.io/ip
curl tnx.nl/ip
curl wgetip.com
curl 2ip.ru
curl ip.tyk.nu
curl curlmyip.net
curl api.ipify.org
curl ipcalf.com
curl curlmyip.net
curl icanhazip.com
curl checkip.amazonaws.com

curl whatismyip.akamai.com

curl ip-api.com/line?fields=query

#返回IP和地区 
curl cip.cc 
curl ipinfo.io
curl cip.cc/114.114.114.114
dig @ns1.google.com TXT o-o.myaddr.l.google.com +short
nslookup -type=TXT o-o.myaddr.l.google.com ns1.google.com

dig myip.opendns.com @resolver1.opendns.com +short
nslookup myip.opendns.com resolver1.opendns.com

dig whoami.akamai.net. @ns1-1.akamaitech.net +short
nslookup whoami.akamai.net. ns1-1.akamaitech.net

dig @1.1.1.1 whoami.cloudflare ch txt +short

 

posted on 2022-02-04 16:55  牛栏山  阅读(1641)  评论(0编辑  收藏  举报