简体   繁体   中英

How to host android app. I am using mysql and Tomcat server

I have made a simple chat application which communicates with the Tomcat server and tomcat server in turns communicate with MySQL to retrieve users information.

Inside tomcat a servlet is running.

Right Now I am using this on a same network but now I want to publish my app.

For ex my ip address is 172.24.0.47 and the URL which I am using is http://172.24.0.47:8080/ChatApp/ and the servlet url mapping is

http://localhost:8080/ChatAppDemo/ChatServlet

everything works fine but when I try to access this URL from a device connected to different network its not working.

Do I have to host it using any web hosting service, or is there any other way?

Sorry I really don't know what to do next.

Yes you ahve to use public web hosting services for this.

I think you cna use 000webhost also for this purpose....

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