Marlos Damasceno
Marlos Damasceno

Reputation: 367

How to debug Android 6.0 over Wi-Fi? (netcfg issue)

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.

Upvotes: 12

Views: 18091

Answers (3)

WISHY
WISHY

Reputation: 11999

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

Upvotes: 5

Rilwan
Rilwan

Reputation: 2301

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>

Upvotes: 18

Murli Prajapati
Murli Prajapati

Reputation: 9713

I use ADBWIFI plugin for android studio ADBWIFI .

I have not tested on Android 6.0 but give it a try.

Upvotes: 2

Related Questions