Android模拟器可以访问IPv6吗?网络不可达 [英] Android emulator access to IPv6 possible? Network is unreachable

查看:702
本文介绍了Android模拟器可以访问IPv6吗?网络不可达的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Windows 7上使用有效的全局ipv6地址运行Android 4.0模拟器。仿真器可以访问主机地址的ipv4,但不能访问ipv6地址。从第三方站点对ipv6地址执行ping操作。

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.

是否存在一些魔术技巧可以告诉仿真器也使用IPv6?该模拟器实际上并没有很多配置选项。

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".

推荐答案

最终支持从仅在IPv6环境中运行Android Emulator的SDK 25.3.0开始。我测试了在仅具有IPv6主机的Docker容器中运行的Android仿真器版本26.0.3.0。您需要了解的主要技巧是,模拟器命令仅支持该功能,例如,用于 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:

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

...,以下内容将不会:

... and the following will not:

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

希望对别人有帮助。

这篇关于Android模拟器可以访问IPv6吗?网络不可达的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆