项目地址: GitHub – NetrisTV/ws-scrcpy: Web client prototype for scrcpy.
docker版
1 | # docker run --name ws-scrcpy -d -p 8000:8000 scavin/ws-scrcpy |
访问:http://服务器ip:8000
Andorid手机打开网络调试
- 电脑安装 adb工具套件SDK Platform Tools
- 打开开发者模式
- 使用 USB 连接 Android 设备,并授权
- 终端输入 adb tcpip 5555
安装zerotier实现内网穿透
- 安卓手机直接下载zerotier app:https://www.zerotier.com/download/
- 服务器端docker版debian版:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15官方镜像:https://registry.hub.docker.com/r/bltavares/zerotier
拉取镜像
docker pull bltavares/zerotier
配置镜像
docker run --device=/dev/net/tun \
--name zerotier-one \
--net=host \
--restart=always \
--cap-add=NET_ADMIN \
--cap-add=SYS_ADMIN \
-v /var/lib/zerotier-one:/var/lib/zerotier-one \
bltavares/zerotier:latest
加入zerotier网络
docker exec zerotier-one zerotier-cli join [网络ID]
显示 200 join ok 即添加成功也可以使用frp或者nps来实现内网穿透达到对安卓的控制1
2
3
4
5
6
7
8
9
10添加Zerotier存储库
curl -s https://install.zerotier.com | sudo bash
安装Zerotier
sudo apt-get install zerotier-one
启动Zerotier
sudo systemctl start zerotier-one
查看Zerotier状态
sudo zerotier-cli status
加入网络
zerotier-cli join [网络ID]参考
- https://www.appinn.com/ws-scrcpy
- https://github.com/Genymobile/scrcpy
- 本文作者: EthanZhu
- 本文链接: https://cloudswave.github.io/2023/08/26/34/
- 版权声明: 本博客所有文章除特别声明外,均采用 Apache License 2.0 许可协议。转载请注明出处!


燕十三