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.
Join Stack Overflow to learn, share knowledge, and build your career.
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.
adb tcpip 5555
from a command promptadb shell "ip addr show wlan0 | grep -e wlan0$ | cut -d\" \" -f 6 | cut -d/ -f 1"
to obtain the phone's IP addressadb connect <ip_address>:5555
You can now view logcat output by running adb logcat
or by viewing the Android Monitor tab within Android Studio.
adb shell "ifconfig | grep -A 1 wlan0 | tail -n 1 | cut -f2 -d: | cut -f1 -d' '"
– ereOn
Jun 12 '17 at 1:17
ifconfig
on Android Q I get ifconfig: ioctl 8927: Permission denied
. I've updated my answer to use ip addr show wlan0
instead.
– donturner
Apr 4 '19 at 19:21
if you are using android studio.Just Download the plugin AndroidWifiADB for android studio.
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.