The true ADB via Wi-Fi (No cables whatsoever)

Ridwan Aditama
2 min readOct 10, 2018

--

Click the link above for the Indonesian version (Klik tautan diatas untuk versi Bahasa Indonesia)

So I’m sure almost everyone that ever asked about this already know how to do it, either from the official guide from Google or many other articles on the Internet. If you do follow those guides, then you’ll probably still need a USB cable to connect your Android device to your PC. Here’s a snippet of the guide from Google.

How to use ADB via Wi-Fi (source: Google)

Now, pay close attention to step 3 and 5, you see there’s a “USB cable” involved in this step… BUT WAIT, what if there’s actually a way to bypass this “USB cable” requirement? (tl;dr at bottom)

Android Emulator to the rescue!

Some of you might be able to guess where I’m going, in case you don’t, worry not, here’s a hint : type adb tcpip 5555(step 4 above) into the command prompt when you don’t have any devices connected.

Typing adb tcpip 5555 into command prompt (without any device connected)

Notice anything from the above screenshot? Yes, they said “emulators”.
Next step : run an emulator, type the command adb devices and check the result, you should see the emulator device listed on adb. You should now be able to type adb tcpip 5555 and the command will execute properly.

adb tcpip 5555 with emulator connected

GREAT! Now we can proceed to use the adb connect {device_ip_address} command and use ADB via Wi-Fi.

Drawbacks

Android Emulator, that’s the drawback. If your PC/Laptop can’t run emulator fast enough, using USB cable is faster and easier.

tl;dr
• Connect device & PC to same Wi-Fi connection
• Run emulator
• adb tcpip 5555
• adb connect {device_ip_address}

I accidentally stumbled onto this method because I had no empty USB port (Mouse, Keyboard, and USB-Amplifier) on my laptop, and I’m too lazy to swap out one of them for the step. Thanks to that, I can now debug through my device without using cables whatsoever, which comes in handy when working in a public place (coffee shop, working spaces, etc), since there will be less clutter on the desk.

Thanks for reading, and hope this guide helps you!

--

--