title: Android Studio Connection with the database on physical device via XAMPP
body: <p>I'm writing an app, which connects to the database, and sends a basic query. Till now I did all my tests on <code>Android Studio Emulator</code> and it worked fine, until I tried it on my phone, which can't connect to the database. </p>
  
  <pre><code>try{
              String myUrl = "jdbc:mysql://192.168.0.12/mydb";
              miastoItemList =new ArrayList&lt;&gt;();
              Connection c = DriverManager.getConnection(myUrl, "root", 
  "test");
              Statement statement = c.createStatement();
              String s = "SELECT * FROM city";
              ResultSet rs = statement.executeQuery(s);
  }
  </code></pre>