如何从网络上的另一台计算机浏览我的 Tomcat 本地主机? [英] How can I browse my Tomcat localhost from another computer on the network?
问题描述
我是一名 IIS 人员,知道它就像使用 http://[computername]/path 到 webapp .. 但是,我似乎无法弄清楚如何为我正在编写的在 Tomcat 下运行的 JSP 应用程序实现这一点.我需要在某处设置配置设置吗?
I'm an IIS guy and know its as simple as just using the http://[computername]/path to webapp.. however, I can't seem to figure out how to make this possible for a JSP application I'm writing that runs under Tomcat. Is there a configuration setting I need to set somewhere?
推荐答案
您需要使用默认为 8080 的 Tomcat 端口.因此您可能希望从机器 B 访问机器 A 上的 localhosthttp://A:8080/YourProject请记住,它与 IIS 不同,它区分大小写.
You need to use the Port of Tomcat which is by default 8080. So you might want to access you localhost on machine A from machine B as http://A:8080/YourProject And Remember Unlike IIS , it is case sensitive.
这篇关于如何从网络上的另一台计算机浏览我的 Tomcat 本地主机?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!