Problem
JBoss 4.0 bundled with Tomcat 5.5, out of the box, will not bind to port 8080 for all interfaces. i.e. I can telnet to the port from the localhost, but not from outside. Please let me know how to bind to this port properly.
On local machine...
telnet 127.0.0.1 8080
Trying 127.0.0.1...
Connected to 127.0.0.1.
On remote machine... (IP address masked slightly)
telnet 208.100.x.x
Trying 208.100.x.x...
- this will eventually time out
Running a netstat -anp | grep 8080 shows this:
Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 :::8080 :::* LISTEN 17487/java
<Engine name="jboss.web" defaultHost="localhost"> ... <Host name="localhost" autoDeploy="false" deployOnStartup="false" deployXML="false"> ...
It was the firewall. The bind is working properly now.
Lessons learned:
1) The three colons in the netstat output is essentially a wildcard.
2) Get to know iptables
Mike