title: Connecting ADB using Wifi for non rooted device
body: <p>I am trying to connect ADB using WIFI on my non rooted android devices. Currently i have 3 android devices out of which 2 are running on Android 4.0.4 and 1 on 2.3.
  My device IP's are 192.168.2.122, 192.168.2.131, 192.168.2.115</p>
  
  <p>I have enabled USB debugging on all of them and follow all the steps as listed <a href="http://developer.android.com/tools/help/adb.html" rel="noreferrer">here</a></p>
  
  <p>On the command line, I did the following</p>
  
  <pre><code>adb tcpip 5555
  restarting in TCP mode port:5555 
  adb connect 192.168.2.131
  </code></pre>
  
  <p>My problem is on one of my device(Android 4.0.4) ADB is getting connected with the message saying</p>
  
  <pre><code>connected to 192.168.2.122:5555
  </code></pre>
  
  <p>However when i try connecting other it says </p>
  
  <pre><code>unable to connect to 192.168.2.131:5555
  </code></pre>
  
  <p>Screenshot of the terminal page:
  <img src="https://i.stack.imgur.com/7dhA7.png" alt="Screenshot of the terminal page:"></p>
  
  <p>Image of terminal on the connected device:
  <img src="https://i.stack.imgur.com/Rg2Hz.png" alt="enter image description here"></p>
  
  <p>Image of terminal on device which is not getting connected:
  <img src="https://i.stack.imgur.com/qpev4.png" alt="enter image description here"></p>
  
  <p>Many of the posts on Stack Over Flow says i need to root my phone for the same but the device on which ADB is getting connected is also not rooted.</p>
  
  <p>May be the problem with the devices not getting connected is that their ports are not getting listened.</p>
  
  <p>Any help appreciated.</p>