title: Debugging on Android device connected to another PC over network/VPN
body: <p>I am trying to connect to an Android device connected to my laptop while developing and writing code via Remote Desktop and VPN on my work machine.</p>
  
  <p>What I would like to do is to build on the remote machine and deploy to android phone via VPN connection to android device connected on the laptop via USB.</p>
  
  <p>I tried following another <a href="https://stackoverflow.com/a/18551325/1079311">post</a> but was unable to get it to work.</p>
  
  <p>Here is what I did so far.</p>
  
  <ul>
  <li><p>Forked ADB server on laptop: </p>
  
  <pre><code>adb -a -P 5037 fork-server server&amp;
  </code></pre></li>
  <li><p>Connected to my server from desktop: </p>
  
  <pre><code>adb connect mylaptopname:5038
  </code></pre></li>
  </ul>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I also tried following instructions from this <a href="https://stackoverflow.com/a/27256599/1079311">post</a> I also do not see my devices. </p>
  
  <p>I run this on the laptop <code>adb -a -P &lt;PORT_NUMBER&gt; nodaemon server</code> and then run this on the desktop where I develop <code>adb -H &lt;REMOTE_IP&gt; -P &lt;PORT_NUMBER&gt; devices</code> I still do not see the device.</p>
  
  <p>I get this back: <code>List of devices attached</code> and nothing else, indicating it does not see any devices.</p>
  
  <p>The connection was successful but my desktop still does not see the phone.</p>