【问题标题】:Visual Studio Android Emulator won't connect to localhostVisual Studio Android Emulator 不会连接到 localhost
【发布时间】:2016-02-08 15:19:58
【问题描述】:

运行 VS 2015 + Windows 10。

android模拟器无法访问IP 169.254.80.80上的localhost,这是注册的虚拟交换机。 但是,它可以连接到网络。 Windows Mobile 10 模拟器可以很好地连接到相同的本地主机 IP。

错误是“连接超时”

Win 10 上的 VS Android 模拟器坏了吗?

【问题讨论】:

标签: visual-studio android-emulator


【解决方案1】:

k - 想通了。

通常使用链接到“Windows Phone Emulator”开关的 IP (169.254.80.80),但在这种情况下并非如此。 如果您打开网络选项卡(选择模拟器上的 >> 按钮),您会注意到有 2 个桌面适配器 - 一个是 169... IP,在我的情况下另一个是 10.0.0.10。 10.0.0.10 IP 成功连接到 localhost(漂亮的蓝色 IIS 屏幕:)

编辑:顺便说一句 - 如果您使用 https - 您需要将端口 443 添加到 Windows 防火墙高级设置中的入站规则中

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-08-29
    • 1970-01-01
    • 1970-01-01
    • 2014-09-17
    • 2016-12-25
    • 2020-12-02
    相关资源
    最近更新 更多