Reputation: 505
I have an android application which takes data from the local server. I works properly on the emulator. But i need help as to how i can achieve this on the device itself. I have tried using the ipv4 but xampp gives a error which states
Access forbidden!
New XAMPP security concept:
Access to the requested directory is only available from the local network.
This setting can be configured in the file "httpd-xampp.conf".
I am not sure how i can configure it so that the device can use this address.
Thanks
Upvotes: 1
Views: 5705
Reputation: 5504
Well, the phone needs to be on the local network (via wifi) or you need to change your httpd-xampp.conf to allow non-local clients to connect to your server, if it's accessible from outside of the network (I doubt it is).
Upvotes: 2