how can i connect an android app (on my phone) to a php server (EasyPHP) that i am running on my machine (localhost). Are there any tutorials out there that document this. I need to test the app on an actual phone not an emulator (because the emulator contains bugs for certain activities). Any help would be great!
Asked
Modified
14 years, 4 months ago
Viewed
6k times
Part
of PHP and Mobile Development Collectives
2 Answers
If you connect on your Android with WiFi, you will be in the same network, then you can access PHP server via your machine's IP address.
1 Comment
hsz
Server should be visible in public network - it has to have public IP.
Ys you connect to the php script...
Android allows you to sent data in GET and POST method.. I found a useful tutorials about this: Android phpMysql connection