title: Android device and xampp server connection
body: <p>Is there any method to access the android app database from xammp server using android device using only usb cable and no other mean, like wifi and mobile network.
  I have gone through many articles and forums to find out this problem but haven't find anything helpful. I am trying to connect the database on localhost xampp from android device (Samsung Galaxy s 2) through my app. I have tried</p>
  
  <blockquote>
    <p>127.0.0.1</p>
    
    <p>127.0.0.1:80</p>
    
    <p>127.0.0.1:8080</p>
    
    <p>10.0.2.2</p>
    
    <p>10.0.2.2:80</p>
    
    <p>10.0.2.2:800</p>
  </blockquote>
  
  <p>also tried my laptop ip address.</p>
  
  <p>When i try to debug my app from eclipse on device, the app starts but when i click to get data (product list) from localhost the device just say that "unfortunately Myapp just stop working" and app is closed. This is when i am not using wifi on my device, but it works well when my device is connected to  wifi. May be there are places when there is no wifi so in case usb option will be good.</p>