by Nobbie » 12. February 2018 17:58
Which Android App do you mean??
Apache sends/receives data via TCP and HTTP is used to be send via Port 80. Therefore your Andoid App must have an option to apply an IP for receiving/sending data from/to a webserver (your Apache from Xampp in that case), you must connect your Smartphone (or tablet) to the same (W)LAN as your Xampp PC and then apply the LAN IP of your Xampp PC (i.e. 192.168.x.y) in your Android App to connect to Xampps Apache. If you can specify a Port, specify Port 80.
If you have a firewall running on one of your devices (Xampp or Smartphone), the connection might fail.
If you need to connect to MySQL (instead of Apache), you must specify Port 3306 instead of Port 80. But, a connection to MySQL requires more than only a server IP and Port, you also have to apply a MySQL User with password, the default User for Xampp MySQL is "root" without Password. If you have to specify a database, you may use "test", it is preconfigured in Xampp. You may also create your own database in Xampp instead.
Last not least you wont succeed if you dont know anything about MySQL connections.