【问题标题】:Debug webpage in Chrome Android App from desktop localhost with port forwarding使用端口转发从桌面本地主机调试 Chrome Android 应用程序中的网页
【发布时间】:2014-02-26 11:40:57
【问题描述】:

我正在关注https://developers.google.com/chrome-developer-tools/docs/remote-debugging#reverse-port-forwarding

我的安卓设备显示在我桌面上的 Chrome 中chrome://inspect

我的桌面上正在运行一个服务器。 http://localhost:3000 在我桌面上的 Chrome 中加载正常。

我尝试单击端口转发按钮并输入8080localhost:3000,然后在Android 上的Chrome 中导航到http://localhosthttp://localhost:3000,但我只收到“无法连接到服务器”消息。它不会接受 80localhost:3000 作为有效选项。

我需要做什么才能从我的安卓设备上查看我桌面上的服务器?

(顺便说一句,如果您知道这个问题的答案,也许您还可以通过Chrome Remote Debugging a local site on a Virtual Machine with port forwarding 提供帮助)

【问题讨论】:

    标签: android debugging google-chrome


    【解决方案1】:

    Chrome 中似乎存在 only allowed ports greater than 5000 的错误。另见this possible solution

    【讨论】:

    • 这是一个有效的答案
    猜你喜欢
    • 2019-06-25
    • 1970-01-01
    • 2019-07-15
    • 1970-01-01
    • 1970-01-01
    • 2013-12-20
    • 1970-01-01
    • 1970-01-01
    • 2014-06-02
    相关资源
    最近更新 更多