4/15/2020 Wireless Debugging through ADB in Android using WiFi
Wireless Debugging through ADB in Android using
WiFi
Ashish Rawat
Jan 4, 2019 · 3 min read
In this article I am going to show you how you can debug your android app over WiFi.
Yes I know it is very hectic to debug your Android app with USB cable if your cable is
broken or not functioning or you don’t have a cable and you have borrowed it from
someone for few minutes.
It will require only few steps to get this done.
Step 1 : Connect your adb host computer and your
android phone to same network
https://android.jlelse.eu/wireless-debugging-through-adb-in-android-using-wifi-965f7edd163a 1/11
4/15/2020 Wireless Debugging through ADB in Android using WiFi
Make sure that your android phone and your host computer are connected on the same
network then you will be able to debug your app.
STEP 2 : If you are connecting to a Wear OS device, turn
off Bluetooth on the phone that’s paired with the device.
https://android.jlelse.eu/wireless-debugging-through-adb-in-android-using-wifi-965f7edd163a 2/11
4/15/2020 Wireless Debugging through ADB in Android using WiFi
STEP 3: Connect the device to the host computer with a
USB cable.
STEP 4: locate your SDK
https://android.jlelse.eu/wireless-debugging-through-adb-in-android-using-wifi-965f7edd163a 3/11
4/15/2020 Wireless Debugging through ADB in Android using WiFi
In the SDK you will find platform-tools
https://android.jlelse.eu/wireless-debugging-through-adb-in-android-using-wifi-965f7edd163a 4/11
4/15/2020 Wireless Debugging through ADB in Android using WiFi
sdk\platform-tools
Set this location as path on Command Prompt
or
On the platform-tools folder
press Shift+Right click
https://android.jlelse.eu/wireless-debugging-through-adb-in-android-using-wifi-965f7edd163a 5/11
4/15/2020 Wireless Debugging through ADB in Android using WiFi
Select Open Command window here
STEP 5 : Check whether your device is properly connected
adb devices
This will show all the devices connect through WiFi.
Step 6 : Set the target device to listen for a TCP/IP
connection on port 5555
adb tcpip 5555
https://android.jlelse.eu/wireless-debugging-through-adb-in-android-using-wifi-965f7edd163a 6/11
4/15/2020 Wireless Debugging through ADB in Android using WiFi
STEP 7 : Find the IP address of the Android device.
you can find the IP address at Settings > Wi-Fi Settings > Advanced > IP address.
https://android.jlelse.eu/wireless-debugging-through-adb-in-android-using-wifi-965f7edd163a 7/11
4/15/2020 Wireless Debugging through ADB in Android using WiFi
https://android.jlelse.eu/wireless-debugging-through-adb-in-android-using-wifi-965f7edd163a 8/11
4/15/2020 Wireless Debugging through ADB in Android using WiFi
STEP 8 : Connect to the device by its IP address.
adb connect device_ip_address
STEP 9 : Remove the USB cable
Remove the USB cable and you should be connected to your device. If you don’t see it
in adb devices then just reconnect using the previous steps command
STEP 10 : Confirm that your host computer is connected
to the target device
$ adb devices
List of devices attached
device_ip_address:5555 device
You’re now good to go! 🎉
https://android.jlelse.eu/wireless-debugging-through-adb-in-android-using-wifi-965f7edd163a 9/11
4/15/2020 Wireless Debugging through ADB in Android using WiFi
If the adb connection is ever lost:
1. Make sure that your host is still connected to the same Wi-Fi network your Android
device is.
2. Reconnect by executing the adb connect step again.
3. Or if that doesn’t work, reset your adb host:
adb kill-server
Then start over from the beginning.
Hope this helps you, if you have any query let me know in the comments section.
Thank you
Share:
https://android.jlelse.eu/wireless-debugging-through-adb-in-android-using-wifi-965f7edd163a 10/11
4/15/2020 Wireless Debugging through ADB in Android using WiFi
. . .
Originally published at aeologic.com on January 4, 2019.
Android Adb Debugging Apps Wireless
About Help Legal
https://android.jlelse.eu/wireless-debugging-through-adb-in-android-using-wifi-965f7edd163a 11/11