22.1.13

JBoss server - access web app from every ip

I'm developing a web application which runs on JBoss on port 8080.
I use Eclipse. When I start JBoss I can access it from localhost:8080/Application.
But if I try to access my application from another pc I've connection refused.
The nat forwarding works but the problem doesn't disappear.
How can I resolve?

For default JBoss run on 127.0.0.1. Simply change it to 0.0.0.0, for accept all ip address.
If you want change it from Eclipse, double-click on JBoss in Server tab and change its properties.
However, a cool way is to launch it from command-line:  $JBOSS_HOME/bin/run.sh -b 0.0.0.0.

Now your application can be accessed from everywhere!!

Nessun commento:

Posta un commento