开发者

Tomcat apps are not available from another computers when Tomcat is started as windows service

开发者 https://www.devze.com 2023-02-18 03:24 出处:网络
I installed tomcat to win2003 server. When I start it by tomcat/bin/startup.bat, I can open my application in browser on the same computer with URL http://localhost:8080/app and from other computer in

I installed tomcat to win2003 server. When I start it by tomcat/bin/startup.bat, I can open my application in browser on the same computer with URL http://localhost:8080/app and from other computer in our LAN with URL http://SERVER_IP:8080/app But when I s开发者_Python百科tart tomcat as a windows service (installed by service.bat install service_name from tomcat/bin directory), my app is not available from other computers, only from the same computer by http://localhost:8080/app.

What should I do to solve this ?


It seems that may be your server's firewall is blocking the request.

Configure firewall to open port no. 8080


You could try to add the attribute address="ip.adress" to the connector element in your server.xml configuration file.

On the other hand the documentation says: "For servers with more than one IP address, this attribute specifies which address will be used for listening on the specified port. By default, this port will be used on all IP addresses associated with the server."

Please check also whether a firwall prevents access from remote machines

0

精彩评论

暂无评论...
验证码 换一张
取 消