1. connect to the USB data cable, Enable USB debugging, and use the Windows "run" command line method: (This method requires configuring the ADB environment variable, you can also directly go to the ADB tool directory and execute \ Android-SDK-Windows \ platform-tools \)
Adb tcpip 5555 (Port Number) ADB connect 192.168.1.199 (Android device IP address) adb usb back USB debugging
2. No data lines are required, and some machines can solve the "unable to connect to 192.168.1.199: 5555" error in method 1.
Install a shell-like tool such as "terminal Simulator" on an Android device. Run the following command (root permission required ):
TCP/IP mode: setprop service. ADB. tcp. port 5555 stop adbdstart adbdusb mode: setprop service. ADB. tcp. Port-1 stop adbdstart adbd
Reference: http://stackoverflow.com/questions/2604727/how-can-i-connect-to-android-with-adb-over-tcp