On my Ubuntu 10.04 lucid lynx server edition machine I have an Apache http server listening on port 80 and today I installed the Funambol server which added an Apache Tomcat server listening on port 8080. From within my lan I can reach both servers, but from outside the lan I can only reach the http server on port 80 and not the Funambol server on port 8080. I get a time out message instead.
In my router I have setup port forwarding, such that both ports 80 and 8080 get forwarded to my server machine. Must Tomcat be told to listen to external requests? Is my server listening on port 8080 only for requests inside the lan? Or is there some authorization that fails when I try to visit from outside my lan?
Here is some netstat output, I don't know if the differences between the 80 line and the 8080 line are relevant:
remon@compaq:~$ sudo netstat -nlp | grep 80
tcp 0 0 0.0.0.0:8009 0.0.0.0:* LISTEN 1778/java
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 1778/java
tcp 0 0 127.0.0.1:8005 0.0.0.0:* LISTEN 1778/java
tcp6 0 0 :::80 :::* LISTEN 719/apache2
udp 0 0 127.0.0.1:32800 0.0.0.0:* 1762/java
udp 0 0 0.0.0.0:68 0.0.0.0:* 809/dhclient3