Android模拟器可以访问IPv6吗?网络无法访问

发布于 2024-12-22 11:05:41 字数 185 浏览 1 评论 0原文

我正在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

那请放手 2024-12-29 11:05:41

从 SDK 25.3.0 开始,终于支持在纯 IPv6 环境中运行 Android 模拟器。我使用在仅支持 IPv6 的主机的 Docker 容器中运行的 Android 模拟器版本 26.0.3.0 进行了测试。要做到这一点,您需要知道的主要事情是它仅支持 emulator 命令,而不支持例如 emulator64-x86 命令。因此,以下内容将起作用:

$ emulator -avd android6.0-1 -sdcard /200MB.img ...

...而以下内容则不会:

$ emulator64-x86 -avd android6.0-1 -sdcard /200MB.img ...

希望它对某人有帮助。

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:

$ emulator -avd android6.0-1 -sdcard /200MB.img ...

... and the following will not:

$ emulator64-x86 -avd android6.0-1 -sdcard /200MB.img ...

Hope it helps somebody.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文