1、确保电脑和Android手机在同一局域网内
2、将Android手机与电脑用usb连接,可用 adb devices命令查看
$ adb usb
restarting in USB mode
$ adb devices
List of devices attached
ZX1D63HX9R device
3、以tcpip模式重启adb
$ adb tcpip 5556
restarting in TCP mode port: 5556
4、查看手机所在IP
Go to Settings -> About phone/tablet -> Status -> IP address
5、用IP连接Android设备
$ adb connect 192.168.0.102:5556
already connected to 192.168.0.102:5556
$ adb devices
List of devices attached
ZX1D63HX9R device 192.168.0.102:5556 device
6、拔掉USB,再看看连接的设备
$ adb devices
List of devices attached
ZX1D63HX9R device 192.168.0.102:5556 device
网友评论