No more USB cables

10 steps to debug your Android app over WiFi

Photo by Sigmund on Unsplash

1. Download the SDK Platform Tools for Windows, Mac, or Linux.

2. Extract the ZIP file somewhere easily accessible.

3. Connect your Android device to the computer with a USB cable for the initial setup.

4. Connect your device to the same WiFi network with the Android Debug Bridge (adb) host computer.

5. Enable wireless debugging on your device.

Wireless debugging

6. Open the command prompt.

run command prompt

7. Change the working directory to platform-tools, type adb devices, and hit Enter.

start to write adb commands

8. Type adb tcpip 5555. This makes the device to start listening for connections on port 5555.

adb command to start listening for connections on port 5555

9. Look up the device IP address of the device. Go to settings, about phone or tablet, status, IP address. You can also type adb shell netcfg or adb shell ifconfig.

adb command to find the device IP address

10. Type connect IP:5555. This connects to the server we set up on the device on step 8.

adb command to connect the server we set up previously on the device

References:
1. https://developer.android.com/studio/command-line/adb#wireless

2. https://stackoverflow.com/questions/4893953/run-install-debug-android-applications-over-wi-fi

--

--

--

Android Software Engineer @vodafone.gr, fitness, bodybuilding and powerlifting enthusiast https://www.linkedin.com/in/kyriakos-georgiopoulos/

Love podcasts or audiobooks? Learn on the go with our new app.

Playing with AppBar in Flutter

BLE Status Codes from Android

Binder Threading Model

Adding a Thruster Boost

Android Architecture or Android Software Stack

Getting our Game Android Ready & Perspective Adjustments

Navigation Graph in android

Do AppAuth Android Step By Step

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Kyriakos Georgiopoulos

Kyriakos Georgiopoulos

Android Software Engineer @vodafone.gr, fitness, bodybuilding and powerlifting enthusiast https://www.linkedin.com/in/kyriakos-georgiopoulos/

More from Medium

Processing Images Fast With Native Code in Android

What is Kotlin and Why you should use it?

Kotlin Programming Language: Everything You Need to Know

From Gradle to Gradle.kts: The definitive Groovy to Kotlin conversion guide.