1. Connect the device using a USB cable (this method configures the ADB environment variable or directly into the ADB tools catalog to execute \android-sdk-windows\platform-tools\).
2. Command input adb tcpip 5555 (5555 is the port number, can be freely specified).
3. Disconnect the USB data, at which point you can connect the USB device you need to connect to.
4. Re-order the IP address of the ADB connect < device >:5555
You can use ADB, DDMS to debug Android apps or display logcat messages later.
5. If you need to restore to a USB cable, you can enter ADB USB at the command line
Note: The IP address of the Android device can be viewed via (settings, information about the phone, status)
In addition, you can install an application called adbwireless to achieve the same wireless real-time debugging, personal temporarily useless, lazy to install new apps ^_^
Reference: HTTP://STACKOVERFLOW.COM/QUESTIONS/2604727/HOW-CAN-I-CONNECT-TO-ANDROID-WITH-ADB-OVER-TCP
Android Wireless real-computer debug via TCPIP