Connect an Android app to localhost without intern

2019-09-15 18:22发布

i have an Android app that needs to access offline a MySQL database that's hosted on my localhost (i'm using WampServer). i can't use USB tethering or port forwarding because my laptop won't have internet connection too. what can i do?

1条回答
贼婆χ
2楼-- · 2019-09-15 18:42

You can setup wifi, connect your system which contains server and your android device to same wifi. Assign a static IP to your server system and let your android connect to that server's MySql through the IP you assigned. Basically it is nothing much different then your web api and db hosted on cloud server and your android application connect to that cloud using either the domain or ip.

查看更多
登录 后发表回答