Tomcat7 on digital ocean, started but not accessible from browser

I just installed tomcat7 in Digital Ocean (ubuntu 12) via this article https://www.digitalocean.com/community/tutorials/how-to-install-apache-tomcat-on-ubuntu-12-04 everything seems to be correct installed, tomcat7 is already running, but I don't know why it doesn't work and is not accessible from the browser using myipaddress: 8080. any help is greatly appreciated. thank

+3


source to share


2 answers


I found the answer, use this to allow remote access to tomcat7 on port 8080:



iptables -I INPUT 1 -i eth0 -p tcp --dport 8080 -j ACCEPT

      

+2


source


It looks like you are using a Linux distribution (like CentOS) which blocks 8080 (or more ports) in firewall rules by default. You can test this by running iptables-save

and see if there are rules blocking any port.

If this case holds



sudo iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT

to unlock 8080.

+3


source







All Articles