title: How to debug Android 6.0 over Wi-Fi? (netcfg issue)
body: <p>I am currently with a problem to debug Android 6.0 over Wi-Fi. I followed the steps of this <a href="https://stackoverflow.com/a/10236938/2689473">answer</a>, however when I try the command <strong>adb shell netcfg</strong> I receive "/system/bin/sh: netcfg: not found". In addition, even the graphical option <strong>ADB over network</strong> in <em>Developers Options</em> Menu has disappeared.</p>
  
  <p>I also, tried this <a href="https://code.google.com/p/android/issues/detail?id=200882" rel="noreferrer">post</a> of Android's Issue because <em>netcfg</em> seems to be deprecated, and I got: WFSO timed out.</p>
  
  <p>It works fine before I updated to Android 6.0.</p>
  
  <p>Does someone knows another command or way to debug over Wi-Fi?</p>
  
  <p>Thanks in advance</p>
  
  <hr>
  
  <p><strong>Solution</strong></p>
  
  <p>Use <code>adb shell ifconfig &lt;interface name&gt;</code> as the <a href="https://stackoverflow.com/a/36298875/2689473">answer</a> from Rilwan to find out the IP address of the device. Then use <code>adb connect &lt;ipaddress&gt;</code>to finally debug over Wi-Fi. The real problem was just the missing <em>netcfg</em> command.</p>