I have a google cloud server with tomcat installation on port 8080.
I can open the tomcat and deployed application in the browser from the google cloud instance but even after adding the firewall rule to open the traffic on 8080 port is not working from my laptop (i.e. internet)
I have spent hours finding the solution but somehow its just not working. If this doesn't work then I might have to move all my servers to AWS. as all servers are having this issue. I tried to recreate a network but couldn't find a way to switch from default network to new network.
Firewall rules
default-allow-http
0.0.0.0/0 tcp:80, tcp:8080, udp:8080
Apply to all targets
default-allow-https
0.0.0.0/0 tcp:443 https-server
default-allow-icmp
0.0.0.0/0 icmp Apply to all targets
default-allow-internal
10.128.0.0/9,
tcp:0-65535, udp:0-65535,
Apply to all targets
default-allow-rdp
0.0.0.0/0 tcp:3389, tcp:8080 Apply to all targets
default-allow-ssh
0.0.0.0/0 tcp:22 Apply to all targets
Best Answer
I think you should change the settings of your Tomcat config to listen to
0.0.0.0
inserver.xml
(as per this other answer suggests).