WiFi-based wireless debugging in Android using ADB

Introduction:

In this tutorial, I’ll show you how to debug your Android app over WiFi.

Yes, I understand how difficult it is to debug your Android app with a USB cord if your cable is broken or not working, or if you don’t have a cable and have borrowed one from someone for a few minutes.

This will only take a few steps to complete.

Step 1: Connect your Android phone to the same network as your ADB host computer.

To debug your app, make sure your host computer and Android phone are both connected to the same network.

Step 2: Using a USB cable, connect the device to the host computer.

Step 3: Find Your SDK

The SDK includes platform tools.

Step 4: Verify that your device is correctly connected.

Set this(sdk\platform-tools) location as a path on Command Prompt.

adb devices

Enter the above command on your command prompt.

This will display all Wi-Fi-connected devices.

Step 5: Set the target device to check port 5555 for TCP/IP connections.

adb tcpip 5555

Enter the above command on your command prompt.

Step 6: Find the Android device’s IP address.

The IP address may be found by going to Settings > Wi-Fi Settings > Advanced > IP address.

Step 7: Use the device’s IP address to connect to it.

adb connect 192.168.6.239 // Enter Your device IP Adress

Enter the above command on your command prompt.

Step 8: Remove the USB cable.

You need to be linked to your device after removing the USB wire. If it’s not listed in adb devices, simply rejoin using the command from the previous stages.

I hope this is helpful. Please let me know if you have any questions in the comments section.

Thank you

Submit a Comment

Your email address will not be published. Required fields are marked *

Subscribe

Select Categories