命令行获取外网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
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?