Not able to connect android app running on phone with localhost

ぐ巨炮叔叔 提交于 2019-12-05 18:55:46

Open Xampp>apache>conf>http-conf file in notepad.

Find Listen 80 and comment out using #(like #Listen 80) and write below it: Listen (static ip address of server):80

eg:

Listen 192.168.1.34:80

If you want to use your application on emulator with localhost database(Xampp) then you have to use the IP address 10.0.2.2 instead of other local ip address .. if you want to use your aap on mobile then you you can use same ip .. press up arrow on left side if my answer is usefull for you

try to check by disabling firewall or use ipconfig /all command then get your ip from there and use this ip as server ip address.

If still facing error then it might be error of your local server the request may be block or something else that you need to find out.to check it try to open url in your android mobile browser.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!