ADB or Android Debugging Bridge is one of the most potent command-line tools for Android devices. ADB grants a solid connection between your Android device and PC. With this, you can perform various activities like sideloading OTA, custom recovery, among others. To perform such activities, you need the help of a USB cable. Without it, ADB commands won’t function like a champ. But that’s a traditional way. There is another method to make this possible – using a WiFi connection. All you need is an Android device, stable WiFi network, PC/laptop, and a USB cable (only for the 1st time).
Below-listed is a step-by-step guide to bring about ADB commands over the WiFi network. Please stick to this process for successful implementation.
Step 1: Download and install the Android SDK platform-tools on your desktop.
Step 2: Connect your Android device to your PC/laptop through a USB cable. Make sure you’ve enabled ‘USB Debugging’.
Step 3: Based on the operating system, open ‘Command Prompt’ on Windows or ‘Terminal’ on Linux and type away ‘ADB devices’. A list of devices connected to your PC/laptop will appear in front of you. Before you ask, alphanumeric codes speak for your device.
Step 4: If a single device is connected, type ‘adb tcpip 5555’. Or type ‘adb –s <device_ID> tcpip 5555’ if multiple devices are connected.
Step 5: Detach the USB cable and go to ‘Device Settings’. To find the IP address, visit Settings > Network and Internet > WiFi > Tap on the connected WiFi > Advanced > Note your IP Address.
Step 6: Turn back to ‘Command Prompt’ or ‘Terminal’ and type ‘adb connect <Device IP>:5555’.
Congrats! Your Android device is connected to perform ADB commands over WiFi.
What all should you remember while connecting ADB via WiFi?
The above steps are easy to perform, but some people may complicate things by ignoring a few pointers. Firstly, make sure that your Android device and PC/laptop are connected on the same WiFi network. In case you change it, you have to replace the ‘Device IP’ with your Android device’s new IP address on the new WiFi network. Secondly, if you restart your smartphone in the middle of the steps, you have to perform the entire process again, as the service will be interrupted.
To sum it up…
Performing ADB commands over WiFi can be a cakewalk if you follow the above-listed steps. It is tried and tested to give you perfect results. Please watch this video for better understanding.