A python script that runs several adb commands to connect the Android device over wifi.
Python 2/3, ADB tools.
USB debug mode must be turned on in the Developer options from phone setting.
Connect your Android device to your PC via USB cable, and make sure they are in the same Wifi network.
If the Environment and Phone Setting is ready, download the file adb_wifi_script.py to your local computer.
Run python adb_wifi_script.py
.
The script will obtain the IP address of your phone via adb command, and connect your phone to your PC over Wifi, the wireless debugging will be available.
adb version
adb start-server
adb devices
adb shell ip addr show wlan0
adb tcpip {port}
adb connect {ip}:{port}
adb disconnect {ip}:{port}