Bind JBoss to specific IP address
by jimmy on Dec.28, 2009, under Java, Linux
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 ^^
No related posts.
January 18th, 2010 on 8:57 am
So, what the different with
$ ./run.sh -b xxx.xxx.xxx.xxx
January 19th, 2010 on 3:26 pm
It’s the same thing :
http://community.jboss.org/wiki/JBossRunParameters
“- the host or ip address used by jboss services as the binding address (equivalent to -Djboss.bind.address=host), e.g. -b localhost”