Adb tcpip 与 ngrok

问题描述 投票:0回答:1

我使用 scrcpy 和 tcpip 将我的 Linux 连接到我的手机,无需任何电缆,它可以工作,但我现在尝试使用 ngrok 服务器通过互联网连接到 adb,这是我的代码:

ngrok tcp <my-phone-ip>:5555
sudo adb tcpip 5555
sudo adb connect <ngrok_host>

但是当我打字时

scrcpy -m 1024 -s <ngrok_host>

我有这个输出:

INFO: scrcpy 1.17 <https://github.com/Genymobile/scrcpy>
adb: error: failed to get feature set: device '<ngrok_host>' not found
ERROR: "adb push" returned with value 1
free(): double free detected in tcache 2
zsh: abort      scrcpy -m 1024 -s <ngrok_host>

提前致谢

android linux tcp adb
1个回答
0
投票

看看这个例子,也许会有帮助 https://github.com/ncdejito/scrcpy-ngrok/blob/main/run.sh

© www.soinside.com 2019 - 2024. All rights reserved.