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”
April 28th, 2010 on 9:46 am
hi thanks for the solution.
actually my work is done by the above solution but can u help me how I can can bind my ipaddress to the netbeans+jboss so that people from diffrent computer can acess .
thanks,
Umakant
June 28th, 2010 on 4:30 pm
thanks for this comment
December 7th, 2011 on 4:57 pm
I use mac and to start jboss, I tried both ./run.sh -b 0.0.0.0 and ./run.sh -b machine_name.
and used http://machine_name:8080/app/login.xhtml instead of regular http://localhost:8080/app/login.xhtml .. but it did not work.
Any idea?
December 8th, 2011 on 11:28 pm
@Raj: how about using the machine-ip rather than the machine-name.