Application Debugging over WIFI: the old school way. without plugin

Application Debugging over WIFI: the old school way

Android Jun 6, 2022

Personally, I always use the ADB over WIFI so debug the application in an easy way than hanging out of a short cable. Fortunately, after Android Studio BumbleBee Google decides to support it officially in Android Studio. Unfortunately, It's not the Best, It's the Worst!

But the problem is.. well It's sucks! first of all, It requires Android 11+. then for the first time, It worked and did the expected things It should be, well.. wait for a second, Is It? NO(Nice Job Google!). after many times trying to Pair the stupid Phone with the dumb IDE finally I succeed *yaay:)*. The second time It simply does not work! why? have no idea... ANYWAY, there is a better and simpler solution. the old school way with the adb command.

It's very simple, no need to PAIR things together, It's easy to connect and ready to debug. Just for the first time, it needs to connect to the PC/Laptop.

First, enter this command:

// If you can't find the `adb` command It's in this directory:
// -> SDK_LOCATION\platform-tools
// add it to your $PATH to easier access.

adb tcpip 9797

basically, this command specifies a port into your Phone to connect through it.

the next Step is nothing! that's it! just kidding:) of course you need to connect it. my advice is to specify a static IP for your WIFI connection in the phone setting otherwise you need to get the IP from the WIFI setting and use it.

Let's connect:

adb connect

That's it. enjoy the debugging through WIFI without the Google pain in the ass plugin.

Good Luck.


Benyamin Eskandari

Curious, Experienced Android Developer Also in love with Rust, DevOps, and System Programming Trying to read a lot of books and learn a lot of things, I will write posts about my path on this journey.