As I have promised in the previous tutorial, this time, I got a tip for you guys to achieve Android Debugging Bridge (ADB) over the same network (via WiFi). The method I am explaining here will not require a rooted Android device.

Still, you will require a USB cable to follow this method. Don’t worry its just for the initial step. There is a different method available which does not require a USB cable even for the initial setup, but it requires a rooted Android device. I will cover this in the upcoming tutorial in this series.

How To?
  • First of all, establish ADB over USB cable to your Android device. If you don’t know how? Follow my previous tutorial.

Debug on Android Device Instead of Emulator

  • Now you need to get the local IP address from your Android Device (PC and Android device must be on the same network). To get that, tap on the current WiFi network you are connected to. In my case IP:

android ip address

  • After you have obtained the IP address, you need to run some commands. To do so, on windows system open up the following directory.

C:\Users\<user name>\AppData\Local\Android\sdk\platform-tools

adb directory

  • Open the command prompt by typing cmd in the directory box.

open cmd

  • Now use the following commands one by one. I have used my Android device’s IP address in the 2nd command.

adb tcpip 5555

adb connect

adb commands

  • Just after running the last command you will see a popup on your Android device. It will be to allow USB debugging. Press OK and you are done!

allow debugging

  • Now you may disconnect the USB cable from Android to PC. To test whether it works, just Run the Android app you are currently working on!

choose deivce

Bingo! It works as same as ADB via USB cable. But it is better to run in wireless mode I guess. If you haven’t succeeded to achieve ADB via WiFi let me know in the comment section below! Enjoy 😉