I just installed Jira with embedded Tomcat, which runs on port 8080. I gave iptables -I INPUT -p tcp --dport 8080 -j ACCEPT and netstat -tpln says:

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0    *               LISTEN      645/sshd            
tcp        0      0  *               LISTEN      29336/java
tcp        0      0*               LISTEN      13598/postgres      
tcp        0      0  *               LISTEN      1101/master                 
tcp6       0      0 :::22                   :::*                    LISTEN      645/sshd            
tcp6       0      0 ::1:5432                :::*                    LISTEN      13598/postgres      
tcp6       0      0 ::1:25                  :::*                    LISTEN      1101/master         
tcp6       0      0          :::*                    LISTEN      27788/java
tcp6        0      0  *               LISTEN      29336/java 

Locally, it works. From remote it doesn't. What should I checkout to get a better insight on the problem?

PS I've also followed this to save iptables changes: https://stackoverflow.com/questions/24756240/how-can-i-use-iptables-on-centos-7

PPS I executed the previous commands also with ip6tables

3 Answers 3


It seems, Tomcat listens on IPv6 only. May be you missed something during installation?

Check this link for further information: https://confluence.atlassian.com/display/JIRAKB/How+to+run+JIRA+on+a+specific+IP


What shouldI checkout?


tcp6 0 0 :::8080 :::* LISTEN 27788/java

It looks like your Jira process is listening on an IPv6 TCP port and not an IPv4 TCP port. You have only opened a port on your IPv4 firewall, you will need to open the same port in your IPv6 firewall - see ip6tables(1).

On CentOS 7 there is also firewalld which may offer a better solution.

  • I omitted that part, sorry. Of course I gave the same commands on ip6tables.
    – Manu
    Feb 16, 2016 at 16:20
  • OP updated to avoid confusion
    – Manu
    Feb 16, 2016 at 16:28
  • Are you connecting via IPv6 externally ?
    – user9517
    Feb 16, 2016 at 16:32
  • Nope, no way I can. I moved it to ipv4, though, so we can proceed on that.
    – Manu
    Feb 16, 2016 at 16:34
  • I decline. This is a Q&A site not Remote Diagnostics as a Service.
    – user9517
    Feb 16, 2016 at 16:41

It was enough to be more precise with the command, like this: iptables -I INPUT 4 -p tcp --dport 8080 -j ACCEPT

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.