title: Debugging winMobile application on remote device (PDA, ARM) from Visual Studio
body: <p><em>Hi!</em></p>
  <p>I have some PDAs (windows mobile) to test my application. One of them is HTC Touch Dual, and it have some <a href="https://stackoverflow.com/questions/1473535/">bugs in debugging</a>. There is another ARMv6 device I can use, but it's far far away. So I can't use USB cable, but can use <strong>TCP/IP</strong> (internet, not intranet).</p>
  <p>Do you know, how can I <strong>connect to remote windows mobile device to debug</strong> application on it?</p>
  <p>We tried different ways and now we know this:</p>
  <ol>
  <li>ActiveSync is bad. It disables all external connections to device and it's impossible (or just I don't know how) to remotely debug device while it's connected via ActiveSync.</li>
  <li>We have created VPN, connected device via wi-fi to remote PC, and setup routes to device be accessible over VPN. At this step device can be connected without ActiveSync (<a href="http://msdn.microsoft.com/en-us/library/ms228708.aspx" rel="noreferrer" title="How to: Connect to Windows CE Device Without ActiveSync">MSDN</a>) from Visual Studio on remote PC. But connection from Visual Studio on my PC was not available - &quot;device not ready&quot;. I can ping device, but can't connect it from Visual Studio.</li>
  </ol>
  <p>I've checked following things:</p>
  <ul>
  <li>binaries versions to connect without ActiveSync to be correct as said in MSDN article above</li>
  <li>routers/firewalls don't block anything</li>
  <li>device is ready to debug</li>
  <li>sniffed packets to device looks similar in case of remote PC connection and my PC connection, but somehow my PC establish only 1 connection, while remote 2</li>
  </ul>
  <p>I think, VPN and PDA connection without ActiveSync was very close to get remote debug, but something goes wrong with it. Maybe I just need some sleep now :)</p>
  <p>And the questions are:</p>
  <ol>
  <li>Do you know, <strong>how to debug remote winCE application in a simplier way?</strong></li>
  <li><strong>What a problem</strong> can be <strong>with &quot;VPN method&quot;</strong> if it's the simplest way?</li>
  </ol>
  <p><em>Thank you.</em></p>