简体   繁体   English

如何托管android应用。 我正在使用mysql和Tomcat服务器

[英]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.

相关问题 我正在尝试制作社交媒体应用。 如何将我的应用程序连接到mySql和Xampp? - I am trying to make a social media app. How do I connect my app to a mySql and, Xampp? 开始我的第一个Android应用程序 如何轻松测试服务器是否收到消息? - Starting my first android app. How can I easily test if the server has received a message? 我正在制作一个壁纸应用程序。 我被困在某个地方 - I am making an wallpaper app. And I am stuck somewhere 对于我的第一个简单Web应用程序的身份验证,我不知所措。 我正在使用JSF2.0 + Tomcat - I'm overwhelmed with authenticating users for my first simple web app. I'm using JSF2.0 + Tomcat Web应用程序的连接为空。 到生产服务器上的MySQL数据库 - Null connection from web app. to MySQL database on production server Android应用。 ClassNotFoundException - Android App. ClassNotFoundException 如何使用tomcat在Windows IIS中托管Spring项目? - How can I host a spring project in Windows IIS using tomcat? 我是否正在使用Tomcat Web服务器? - Am i using the Tomcat webserver or not? 我有一个Java二十一点应用程序。 如何使其成为服务器-客户端? - I have a java blackjack app. How to make it server-client? 如何绘制从我的android应用发送到tomcat服务器的经度和纬度,并在该处的Google地图上进行绘制? - How can i plot the longitudes and latitudes sent from my android app to tomcat server and plot on the google maps there?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM