Using ADB through WIFI for Android Development

Most of the time, I use emulator for android development. But, using emulator can eat my memory and slowing down my development. Doesn’t help that the fact that Android Studio also take most of my desktop resource.

Real device deployment is way to go. But, sometimes dealing with USB cable is not pleasant experience. So, the solution is using WiFi to connect with my device.

First, connect phone to computer using USB cable. Open command prompt, type this command below to get list of connected devices.

adb devices -l

You should see your devices. Then, type this command to start adb in TCP mode. The number is port we will use in this mode. Use whatever vacant number you like.

adb tcpip 1502

Check your phone IP. Your phone and computer must be in same WiFi. Depend on your Wifi router configuration, it should be starting with 192.168.xxx.xxx. Enter this command to connect ADB to your phone with the same port number.

adb connect 192.168.100.12:1502

Again, run adb devices command to check new connected device. If all set, you can plug off your cable.