How to change ADB over Wi-Fi mode using computer?
Please note that ADB over Wi-Fi mode will be disabled every time the device is rebooted.
Step 1. Enable USB Debugging
Enable USB Debugging on your Android device. For more info, see How to enable USB Debugging?.
Step 2. Setup adb in computer
Download SDK Platform Tools in your computer to setup adb.
After downloading, extract zip file. It contains
platform-tools
folder.Open Terminal (or Powershell) and change directory to the extracted
platform-tools
folder. For example:powershellcd C:\Users\YourUserName\Downloads\platform-tools
shcd /Users/YourUserName/Downloads/platform-tools
shcd /home/YourUserName/Downloads/platform-tools
Verify the setup using the following command.
sh./adb version
It should print Android Debug Bridge version ...
etc.
Step 3. Change ADB over Wi-Fi mode
Connect your Android device to your computer with a USB cable.
In previously opened terminal, run the following command to check connected devices.
sh./adb devices
You should see your device listed. You may see USB Debugging authorization dialog in your connected deivce. In this case, please click OK or Allow.
Run the following command to change ADB over Wi-Fi mode.
sh./adb tcpip 5555
It should print restarting in TCP mode port: 5555
.
Congratulations 🎉, you can now connect your device using IP Address and port 5555
.
You can also get your local IP address from the connected device by running the following command.
./adb shell 'ifconfig wlan0 | grep "inet "'
./adb shell 'ifconfig eth0 | grep "inet "'