title: Getting "Launch error: Failed to connect to remote VM. Connection timed out" when trying to debug my app on my device in android
body: <p>I tried all the possible options given on net and on this site, but none of them worked.</p>
  
  <p>I am getting:</p>
  
  <blockquote>
    <p>Launch error: Failed to connect to remote VM. Connection timed out.</p>
  </blockquote>
  
  <p>when I am trying to debug my application on my mobile device.
  the application runs properly with out any issue when I am running normally</p>
  
  <p>I have used at lease these links by now:</p>
  
  <p><a href="https://stackoverflow.com/questions/4375375/how-to-resolve-waiting-for-debugger-message">How to resolve &quot;Waiting for Debugger&quot; message?</a></p>
  
  <p><a href="https://stackoverflow.com/questions/8519164/eclipse-issue-launch-error-failed-to-connect-to-remote-vm-connection-timed-o">Eclipse issue - Launch error: Failed to connect to remote VM. Connection timed out</a></p>
  
  <p><a href="https://stackoverflow.com/questions/975384/eclipse-error-failed-to-connect-to-remote-vm">Eclipse Error: &quot;Failed to connect to remote VM&quot;</a></p>
  
  <p><a href="https://stackoverflow.com/questions/7203759/launch-error-failed-to-connect-to-remote-vm">Launch error: Failed to connect to remote VM</a></p>
  
  <p><a href="https://forums.oracle.com/forums/thread.jspa?threadID=653343" rel="nofollow noreferrer">https://forums.oracle.com/forums/thread.jspa?threadID=653343</a></p>
  
  <p>None of the above seem to work.</p>