I installed JBoss 5.0.1 and ran it , but when i called it from the same computer on localhost:8080 it works but when i call it from other computer it doesnt work at all using the computer IP ... when i had tomcat it used to work on both.so Does anybody know the problem?
2. Re: System property to determine server ip address. You do know that you can view all of the system properties using the jmx-console, right? http://localhost:8080/jmx-console, select the name=Properties,type=Service MBean under 'jboss' and click Invoke next the the showAll operation.
If you are running JBoss from an IDE there should be a checkbox that allows for remote web access. It is unchecked by default. In eclipse, double click on JBoss under the servers tab and there should be a checkbox labeled "Listen on all interfaces to allow remote web connections." under the Server Behaviour tab.
It tells JBoss which local address to bind to. The server will only listen on that specific interface, not on all local interfaces. (e.g. if you have bind address set to 127.0. 0.1 , it will not listen to connection from other hosts, only on localhost.)
To start up a JBoss AS 7 managed domain you need to execute the $JBOSS_HOME/bin/domain.sh script, and to start up a standalone server use $JBOSS_HOME/bin/standalone.sh. This will start it up using the default configuration.
If you want JBoss to communicate on all IP addresses that are on the machine, then you can start it with the -b option passing 0.0.0.0 as the ip address, e.g.
-b 0.0.0.0
Probably better is binding to the specific IP address that you want to. You can do this again by using the -b option, but passing the IP address you want to bind to or the DNS name you want to bind to, e.g.
-b 192.168.0.1
or -b jbosshostname
You can put the -b option in the run.bat file so it is used automatically if you are running JBoss as a service - assuming Windows. If you are not using Windows, you can place this option in the run.sh file.
If you do not wish to put the -b option in the run.sh/bat file, you can enter it at the command line:
run.bat -b 192.168.0.1
Solution to jboss 7 is the same, but with the addition of -bmanagement
for the management interface
-b 0.0.0.0 -bmanagement 127.0.0.1
If you prefer do set this permanently in config file you may edit file standalone/configuration/standalone.xml
from :
<interfaces>
<interface name="management">
<inet-address value="${jboss.bind.address.management:127.0.0.1}"/>
</interface>
<interface name="public">
<inet-address value="${jboss.bind.address:127.0.0.1}"/>
</interface>
<interface name="unsecure">
<inet-address value="${jboss.bind.address.unsecure:127.0.0.1}"/>
</interface>
</interfaces>
to:
<interfaces>
<interface name="management">
<inet-address value="${jboss.bind.address.management:127.0.0.1}"/>
</interface>
<interface name="public">
<inet-address value="${jboss.bind.address:0.0.0.0}"/>
</interface>
<interface name="unsecure">
<inet-address value="${jboss.bind.address.unsecure:127.0.0.1}"/>
</interface>
</interfaces>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With