[英]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. 我做了一个简单的聊天应用程序,它与Tomcat服务器通信,而tomcat服务器又与MySQL通信,以检索用户信息。
Inside tomcat a servlet is running. 在tomcat内部,一个servlet正在运行。
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 例如,我的IP地址是172.24.0.47,我使用的URL是http://172.24.0.47:8080/ChatApp/ ,而servlet URL映射是
http://localhost:8080/ChatAppDemo/ChatServlet HTTP://本地主机:8080 / ChatAppDemo / ChatServlet
everything works fine but when I try to access this URL from a device connected to different network its not working. 一切正常,但是当我尝试从连接到其他网络的设备访问此URL时,它无法正常工作。
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.... 我认为您也可以为此目的使用000webhost。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.