Jimmy’s Blog

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.

:, , , ,

2 Comments for this entry

Leave a Reply

Anti-Spam Protection by WP-SpamFree

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...