原创 浏览器访问 IPv6 地址
在 IPv6 地址两边加上中括号,就可以通过浏览器访问了
浏览器访问
访问 http://[2402:4e00:1013:e500:0:9671:f018:4947]/
,会返回本机 IPv6 IP地址。
如果有端口,在 IP 地址后面添加端口,比如
http://[2402:4e00:1013:e500:0:9671:f018:4947]:80/
Ping IPv6 地址
6.ipw.cn新窗口打开 域名解析的 AAAA 记录就是上面这个 IPv6 IP。
~$ ping6 6.ipw.cn
PING6(56=40+8+8 bytes) 1111:1111:30c0:9556:b807:e464:1111:1111 --> > 2402:4e00:1013:e500:0:9671:f018:4947
16 bytes from 2402:4e00:1013:e500:0:9671:f018:4947, icmp_seq=0 hlim=52 time=8.748 ms
16 bytes from 2402:4e00:1013:e500:0:9671:f018:4947, icmp_seq=1 hlim=52 time=8.715 ms
16 bytes from 2402:4e00:1013:e500:0:9671:f018:4947, icmp_seq=2 hlim=52 time=8.426 ms
16 bytes from 2402:4e00:1013:e500:0:9671:f018:4947, icmp_seq=3 hlim=52 time=15.139 ms
16 bytes from 2402:4e00:1013:e500:0:9671:f018:4947, icmp_seq=4 hlim=52 time=9.092 ms
2
3
4
5
6
7
终端 CURL 访问
MacOS
curl [2402:4e00:1013:e500:0:9671:f018:4947]
1111:1111:30c0:9556:b807:e464:1111:1111
curl http://[2402:4e00:1013:e500:0:9671:f018:4947]/
1111:1111:30c0:9556:b807:e464:1111:1111
2
3
4
5
6
Linux
如果在 Linux 下,还需要增加 -g
参数,否则会提示 curl: (3) [globbing] error: bad range specification after pos
。
-g, --globoff
his option switches off the "URL globbing parser". When you set this option, you can specify URLs that contain the letters {}[] without having them being interpreted by curl itself. Note that these letters are not normal legal URL contents but they should be encoded according to the URI standard.
2
curl -g http://[2402:4e00:1013:e500:0:9671:f018:4947]/
curl 指定 IPv6 或 IPv4 访问
如果同一个 host 同时解析到 IPv6 和 IPv4 地址,即 IPv4/IPv6 双栈,则 curl 使用参数可指定 IP 协议的版本。
-4, --ipv4
If curl is capable of resolving an address to multiple IP versions (which it is if it is IPv6-capable), this option tells curl to resolve names to IPv4 addresses only.
-6, --ipv6
If curl is capable of resolving an address to multiple IP versions (which it is if it is IPv6-capable), this option tells curl to resolve names to IPv6 addresses only.
比如 test.ipw.cn 同时解析到 IPv4 和 IPv6 地址。
curl -4 test.ipw.cn
106.224.145.147
curl -6 test.ipw.cn
2408:824c:200::2b8b:336f:cc9c
2
3
4
5
telnet ipv6 地址
telnet -6 2402:4e00:1013:e500:0:940e:29d7:3443 80
Trying 2402:4e00:1013:e500:0:940e:29d7:3443...
Connected to 2402:4e00:1013:e500:0:940e:29d7:3443.
Escape character is '^]'.
2
3
4
IPv6工具箱 小程序 和 iOS App
小程序
微信扫一扫,唤起小程序
你也可以复制小程序短链接,发送给任意一个微信好友,在聊天对话框中打开该短链接即可唤起小程序。
#小程序://IPv6工具箱/U1R4edQusuF2zpa
注:如果你觉得这个小程序还不错,欢迎在微信搜一搜中搜索 IPv6工具箱
并给予评价,你的鼓励是本站前进的动力😘!
苹果 iOS App
如果你正在使用 iPhone 打开本站,可点击 IPv6工具箱新窗口打开 快速进入 App Store 下载 App,当然你也可以使用微信扫描下方二维码。
注:如果你觉得这个 App 还不错,欢迎在 App Store新窗口打开 轻点评分+评论,你的鼓励是本站前进的动力!😘
访客IP: ,您的网络 访问优先