简体   繁体   中英

Cant access wamp server(localhost) for my social android app?

I finished creating my social app yesterday and uploaded it to the Play Store. Using the ip address http://192.168.56.1/index.php on an emulator, it was working, but now in a real android device, it doesn't work.

How can I fix this issue ?

I even assigned my ip address but didn't work.

Help will be appreciated.

Actualy you are trying to access to your local server from a remote device, so this is normal! you have to put your web services in an online server (PUBLIC IP) ... The application keep working for you because you already have WAMP server runing localy , if you turn down your server it won't work anymore .. The android device doesn't have access to your WAMP, unlike the emulator!

Note: If you put your WAMP online, you can manage to run your android application, but this is not a good solution because you need something available 7/7 & 24/24 ( a web server ), you can host your scripts on a shared hosting server for a cheap price ..

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM