Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I use the hostname of the server instead of localhost with JBoss?

I setup JBoss 4.2.2 GA on a local server of mine. I am able to access the JBoss Application Server by going to http://localhost:8080. However, I would like to use the hostname instead of localhost so that other computers on the same network can use the server as well. When I try http://hostname:8080, or even http://192.168.1.100:8080, I get a "Page Not Found" error.

Is there some setup I am missing to enable using the hostname, or even the ip address? I appreciate everyone's help.

like image 321
Ascalonian Avatar asked Jan 29 '26 08:01

Ascalonian


1 Answers

By default, JBoss only binds to localhost. This is a security default.

The easiest way to change this is to launch JBoss with the -b flag, telling it which address to bind to, for example

run.bat -b 192.168.1.100

(or using whichever startup script you're using)

like image 152
skaffman Avatar answered Feb 01 '26 22:02

skaffman



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!