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
精彩评论