I am currently with a problem to debug Android 6.0 over Wi-Fi. I followed the steps of this answer, however when I try the command adb shell netcfg I receive "/system/bin/sh: netcfg: not found". In addition, even the graphical option ADB over network in Developers Options Menu has disappeared.
I also, tried this post of Android's Issue because netcfg seems to be deprecated, and I got: WFSO timed out.
It works fine before I updated to Android 6.0.
Does someone knows another command or way to debug over Wi-Fi?
Thanks in advance
Solution
Use adb shell ifconfig <interface name>
as the answer from Rilwan to find out the IP address of the device. Then use adb connect <ipaddress>
to finally debug over Wi-Fi. The real problem was just the missing netcfg command.
If you are looking for IP address- your system and mobile are connected to the same network
Simply go to Settings -> About Phone -> Status
Here you will find the IP
From your question, if you tried this over wifi means- adb shell netcfg I receive "/system/bin/sh: netcfg: not found"
, adb over wifi is working fine. Only problem is netcfg
binary is not there in Android 6.0. If you have any other previous version android, you can pull netcfg
binary and push to 6.0 device.
If you just want to know ipaddress you can use adb shell ifconfig <interface name>
I use ADBWIFI plugin for android studio ADBWIFI .
I have not tested on Android 6.0 but give it a try.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With