How to do wireless debugging in Android Studio

This blog would be a quick guide to do wireless debugging in Android Studio

Hello techies, this blog will not be more about an overview how to do wireless debugging in Android Studio but would be more of a quick solution for those who have searched through the internet to fix it in Android Studio.

So, basically you can find all the way to do wireless debugging in Android studio here - but in this blog I would be showing you the simplest and easiest way to do things, which worked for me pretty well.

So let's dive into this. In this tutorial to connect your device wirelessly for debugging we would be using the adb commands - if your terminal doesn't know it then add it to the path or install the android-platform-tools. You can go through the plenty of articles on internet to set it up for you. Once adb command is available on your terminal we're good to go further.

First things First

  • On your mobile device enable USB Debugging.
  • Then connect the device using USB to Android studio which you do usually for the debugging over USB.

Make your device ready

  • Now open up the terminal and list out the devices using the command adb devices -l
  • Now, if you can see your device in the terminal, the we are good to go.
  • Run this command - adb tcpip 5555. This will put the device into TCP/IP mode listening on port 5555. Now remove the USB from device.

Final Step

  • In your device, get the IP of the device by going into settings, and then in about phone > status > IP address. Or rather search for IP in settings as different devices it's location may vary. Whole point here is to get the IP of the device.
  • Now, the final step - run the command - adb connect device_ip:5555. This will connect the device wirelessly.

So, at this point, you would be able to see the device connected, also you can check it by running command adb devices and your device would be listed there.

Congratulations! you have setup the wireless debugging in Android Studio.

 If you really liked this blog, do checkout other blogs, and stay tuned!

Happy Wireless Debugging!!

Akash Srivastava
Software Engineer @ Seawoods Ventures Inc.
© 2019-2024 dev-akash.in