Android DTT #21 — ADB Debug Over WiFi
There are few times when I want (or need) to debug my apps over wifi. The most likely reason is that my USB cable is being used to charge my other device. Or when I forgot to bring my USB cable when I go to work. The other reason when someone want to play around with the apps but doesn’t have to stay close to my laptop. You need to prepare:
- Your device IP address
- A USB cable. (Yes, it’s necessary to start the process)
Here’s how to do it:
- Connect your device with cable. Make sure it’s debuggable.
adb tcpip 5555
adb connect <YOUR_DEVICE_IP>:5555
- There’s no step 4.
You can now safely unplug the USB cable and start debugging wirelessly. When you’re done and want to switch back to USB you can run
adb -s <YOUR_DEVICE_IP>:5555 usb
If you like this, hit that heart button and recommend it to your friends.
ADTT (Android Development Tips and Tricks) is a 31 series of blog posts that I’m trying to finish in throughout May. Click here for index.