Quantcast
Channel: Jimmy's Blog » Java
Viewing all articles
Browse latest Browse all 10

Bind JBoss to specific IP address

$
0
0

Simple but I think it will help JBoss newbie (like me :]) when searching the internet.

By default when you run JBoss ( ./run.sh in Linux) it will bind to localhost/127.0.0.1
This will cause the JBoss default port 8080 cannot be access from other computer, because you need to open http://127.0.0.1:8080/ instead of your IP http://<your IP>:8080/

To make the JBoss binding to specific IP you need to run it with :
./run.sh -Djboss.bind.address=xxx.xxx.xxx.xxx
*which of course the xxx.xxx.xxx.xxx is your IP

Other PC will able to access the JBoss with that IP

For Windows I think it will be the same :
./run.bat -Djboss.bind.address=xxx.xxx.xxx.xxx

Cheers ^^


Viewing all articles
Browse latest Browse all 10

Trending Articles