How can I use adb over WiFi?

AndroidDebuggingAdb

Android Problem Overview


I am debugging USB devices connected to my Android phone, this means I cannot use ADB over a USB connection. How can I connect to adb over WiFi?

Note: Similar question here refers to adb over tcp, however, I'm specifically asking about WiFi.

Android Solutions


Solution 1 - Android

  • Connect Android phone and host machine to same WiFi network
  • Connect Android phone to host machine using USB cable (to start with)
  • Run adb tcpip 5555 from a command prompt
  • Run adb shell "ip addr show wlan0 | grep -e wlan0$ | cut -d\" \" -f 6 | cut -d/ -f 1" to obtain the phone's IP address
  • Disconnect USB cable and run adb connect <ip_address>:5555

You can now view logcat output by running adb logcat or by viewing the Android Monitor tab within Android Studio.

Solution 2 - Android

if you are using android studio.Just Download the plugin AndroidWifiADB for android studio.

Solution 3 - Android

You can adb over wifi using the app Wifi-ADB. The app requires superSU permissions hence the android phone you want to connect over WiFi must be rooted.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestiondonturnerView Question on Stackoverflow
Solution 1 - AndroiddonturnerView Answer on Stackoverflow
Solution 2 - AndroidPratik Mohanrao GondilView Answer on Stackoverflow
Solution 3 - AndroidPurvil BambharoliaView Answer on Stackoverflow