title: Android Wear Enable ADB Connection Over WiFi TCP/IP
body: <p>I'm trying to develop an app for Android Wear.  In order to test my app on my Moto 360 watch (which has no USB port):</p>
  
  <ol>
  <li><p>I connected my phone to my computer via USB.</p></li>
  <li><p>I opened the Android Wear companion app on my phone and enabled "debugging over Bluetooth."</p></li>
  <li><p>I opened the developer options on my watch and enabled "adb debugging," and "debugging over Bluetooth."</p></li>
  <li><p>I opened a terminal on my computer and issued the commands </p>
  
  <pre><code>(1) adb forward tcp:4444 localabstract:/adb-hub
  
  (2) adb connect localhost:4444
  </code></pre></li>
  <li><p>I clicked the "run" button from Android Studio and selected my Moto 360 watch as the target device.</p></li>
  </ol>
  
  <p>All of this worked, and I'm able to see my app in action on my watch.  However, installing the app over Bluetooth using the above method takes a really really long time.  Sometimes a minute, sometimes 10 minutes, it's always variable.  The app I'm testing is very small: a couple xml files and 1 java class with no additional resources.</p>
  
  <p>My question is: is there a way for me to install my Android Wear app directly to my Moto 360 watch via WiFi instead of Bluetooth?</p>
  
  <p>In a terminal on my computer, I tried using the commands:</p>
  
  <pre><code>(1) adb tcpip 5555
  
  (2) adb connect 192.168.1.23:5555
  </code></pre>
  
  <p>but I get the error </p>
  
  <pre><code>unable to connect to :5555
  </code></pre>
  
  <p>So then I tried using adb to open a shell on my watch, start the adb server, and then connect to it:</p>
  
  <pre><code>(1) adb -s localhost:4444 shell
  
  (2) adb start-server:5555
  
  (3) exit
  
  (4) adb connect 192.168.1.23:5555
  </code></pre>
  
  <p>but I still get the same error </p>
  
  <pre><code>unable to connect to :5555
  </code></pre>
  
  <p>So again I ask, is there a way on Android Wear devices to enable ADB connections over WiFi TCP/IP so that I can install my apps via WiFi instead of Bluetooth?</p>