允许Android模拟器中的应用程序访问内网

发布于 2024-12-11 07:01:08 字数 231 浏览 6 评论 0原文

这个问题可能已经被问过一百遍了。但我似乎看不到任何答案。如何设置 Android 模拟器,以便在其中运行的应用程序可以访问在我们的 Intranet (LAN) 中设置的 Web 服务器?

我尝试设置代理/端口(在 Android 的设置中以及启动模拟器时指定 -http-proxy),但我无法让我的应用程序连接到 Intranet。

希望有人能给我快速答复,因为这确实很紧急。

谢谢和问候, 拉伊

This probably has been asked a hundred times. But I can't seem to see any answer. How do I set the Android emulator so that my app running in it can access a web server set up in our intranet (LAN)?

I have tried setting the proxy/port (both in the settings in Android and specifying -http-proxy when launching the emulator) but I can't get my app to connect to the intranet.

Hopefully, someone can give me a quick answer as this is really urgent.

Thanks and regards,
Rai

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

握住我的手 2024-12-18 07:01:08

您无需向模拟器添加任何新配置即可工作。它使用您的笔记本电脑或系统所拥有的网络。它是您系统上的一个新桥设置,用于与外界进行通信。

因此,我建议您检查您的系统是否能够连接到已设置的网络服务器。

You do not need to add any new configuration to the emulator to work. It uses the network what your laptop or System has. It is a new bridge setup on your system using which it communicates to the outside world.

So, I suggest, you check if your system is able to connect to the web server is setup.

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