简体   繁体   中英

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

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 start 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

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