0% found this document useful (0 votes)
199 views

Wireless Debugging Through ADB in Android Using WiFi PDF

This document outlines 10 steps to enable wireless debugging of an Android app using WiFi and ADB (Android Debug Bridge). The steps are: 1) connect the Android device and computer to the same WiFi network, 2) turn off Bluetooth if debugging a Wear OS device, 3) connect the device to the computer with USB, 4) locate the SDK platform-tools folder, 5) check for connected devices with ADB, 6) set the device to listen on port 5555, 7) find the device's IP address, 8) connect to the device via IP address, 9) remove the USB cable, and 10) confirm the wireless connection. Following these steps allows debugging an Android app over WiFi without needing

Uploaded by

Vinnie Tendere
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
199 views

Wireless Debugging Through ADB in Android Using WiFi PDF

This document outlines 10 steps to enable wireless debugging of an Android app using WiFi and ADB (Android Debug Bridge). The steps are: 1) connect the Android device and computer to the same WiFi network, 2) turn off Bluetooth if debugging a Wear OS device, 3) connect the device to the computer with USB, 4) locate the SDK platform-tools folder, 5) check for connected devices with ADB, 6) set the device to listen on port 5555, 7) find the device's IP address, 8) connect to the device via IP address, 9) remove the USB cable, and 10) confirm the wireless connection. Following these steps allows debugging an Android app over WiFi without needing

Uploaded by

Vinnie Tendere
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

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

You might also like