Android模拟器可以访问IPv6吗?网络无法访问
我正在 Windows 7 上运行 Android 4.0 模拟器,并具有有效的全局 ipv6 地址。模拟器可以访问宿主机的ipv4地址,但不能访问ipv6地址。从第三方站点 Ping ipv6 地址有效。
是否有一些技巧可以告诉模拟器也使用 IPv6?模拟器并没有真正提供很多配置选项。
我总是收到“网络无法访问”的消息。
I am running an Android 4.0 emulator on windows 7 with a valid global ipv6 address. The emulator can access the ipv4 of the host machine addresses but not the ipv6 address. Pinging the ipv6 address from a third party site works.
Is there some magic trick to tell the emulator to use IPv6 as well? The emulator hasn't really got a lot of configuration options.
I always get the message "Network is unreachable".
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
从 SDK 25.3.0 开始,终于支持在纯 IPv6 环境中运行 Android 模拟器。我使用在仅支持 IPv6 的主机的 Docker 容器中运行的 Android 模拟器版本 26.0.3.0 进行了测试。要做到这一点,您需要知道的主要事情是它仅支持 emulator 命令,而不支持例如 emulator64-x86 命令。因此,以下内容将起作用:
...而以下内容则不会:
希望它对某人有帮助。
Starting from SDK 25.3.0 running Android Emulator in IPv6-only environment is finally supported. I tested with Android emulator version 26.0.3.0 running in Docker container with IPv6-only host. The main thing you need to know to do the trick is that it is only supported with emulator command and not supported e.g. for emulator64-x86 command. So the following will work:
... and the following will not:
Hope it helps somebody.