Share Adb Devices With Adb Server

Remote ADB server

To connect to a remote adb server, make the server listen on all interfaces:

adb kill-server

adb -a nodaemon server start

# keep this open

Warning: all communications between clients and the adb server are unencrypted.

Run adb shell from another terminal

Suppose that this server is accessible at 192.168.1.2. Then, from another terminal, run adb shell:

export ADB_SERVER_SOCKET=tcp:192.168.1.2:5037
set ADB_SERVER_SOCKET=tcp:192.168.1.2:5037
$env:ADB_SERVER_SOCKET = 'tcp:192.168.1.2:5037'

文档信息