title: Testing Java Endpoints on real device in Android Studio
body: <p>I followed this tutorial to setup a cloud database for my Android App</p>
  
  <p><a href="https://github.com/GoogleCloudPlatform/gradle-appengine-templates/tree/master/HelloEndpoints" rel="nofollow">https://github.com/GoogleCloudPlatform/gradle-appengine-templates/tree/master/HelloEndpoints</a></p>
  
  <p>Everything compiled fine and the server is running at <a href="http://localhost:8080/" rel="nofollow">http://localhost:8080/</a></p>
  
  <p>However I keep getting this error</p>
  
  <p>failed to connect to /10.0.0.2(port 8080) after 20000ms</p>
  
  <p>I tried replacing 10.0.0.2 with my local IP address but it didn't work and showed the same error.</p>
  
  <p>I am using Android Studio and debugging the app on my Android phone. Kindly help. Thanks!</p>