首先用usb线连接设备
I firstly connected my Android4.0.3 based device via USB and set the TCP/IP port to 5555
$ adb tcpip 5555
After that I disconnected USB connection and connected to device via WiFi IP and it worked.
$ adb kill-server
$ adb connect 192.168.2.5
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
connected to 192.168.2.5:5555
假如我们有一根usb线连接,输入
adb tcpip 5555
设置连接的端口
adb connect 手机IP:5555
连接到手机,并监听
adb usb 还可以这样回到usb模式