简体   繁体   中英

Unable to access tomcat server on 8080 port from Google Compute Engine VM (Windows Server 2012)

I have created Virtual Machine Under Google Compute Engine and selected Windows Server 2012 R2 as OS for the server. I have installed Tomcat 8 and and it is running on 8080 HTTP port. I can access locally tomcat on browser using internal IP and localhost. But I can not able to access tomcat using external IP from my local computer. Please help me if possible. My tomcat server configuration file of tomcat is below.

There are two common issues for this:

  1. You need to open port 8080 on GCE's firewall in order for it to be accessible from outside GCE.

  2. It is possible that Tomcat is only listening on the localhost. You might need to set the HTTP Connector address attribute to 0.0.0.0 so that Tomcat listens on all addresses.

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