1

I'm running the JBoss webserver on my ubuntu (10.10 64bit) machine and I'd like to access it from another machine.

If I open localhost:8080 in the browser on my local machine it works. However, from the remote machine I can ping my ip address, but I can't access port 8080. I also can't seem to see port 8080 by running netstat -pan.

How can I open up port 8080 to the world?

2 Answers2

3

Are you sure your server isn't configured to listen only on localhost (lo) interface? Look for its configuration and have it listen on all interfaces.

The default startup script for Jboss has the following line to specify which IP address Jboss should bind itself to

JBOSS_BIND_ADDR=${JBOSS_HOST:+"-b $JBOSS_HOST"}

You can either edit this line or if you are running [u|l]inux system, you can add the following line above this line

JBOSS_HOST=hostname

Keith
  • 8,293
2

Are you sure you haven't enabled the Firewall?

sudo ufw disable

This might be a security risk you can choose to ignore. If you want to configure your firewall later, check this documentation of ufw.

slhck
  • 235,242