我正在关注 https://developers.google.com/chrome-developer-tools/docs/remote-debugging#reverse-port-forwarding .
我的 Android 设备显示在我桌面上的 Chrome 中,位于 chrome://inspect
。
我的桌面上运行着一个服务器。 http://localhost:3000
在我桌面上的 Chrome 中加载正常。
我尝试单击端口转发按钮并输入 8080
和 localhost:3000
然后导航到 http://localhost
和 http://localhost:3000
在 Android 上的 Chrome 中,但我只收到“无法连接到服务器”消息。它不会接受 80
和 localhost:3000
作为有效选项。
我需要做什么才能在我的 Android 设备上查看桌面上的服务器?
(顺便说一句,如果你知道这个问题的答案,也许你也可以帮助 Chrome Remote Debugging a local site on a Virtual Machine with port forwarding)
最佳答案
看起来 Chrome 中有一个错误 only allowed ports greater than 5000 .另见 this possible solution .
关于android - 使用端口转发从桌面本地主机调试 Chrome Android App 中的网页,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21519696/