I'm running JBoss AS7 in a standalone mode using ./standalone.sh. This binds JBOSS to only localhost. Is there a way to bind it to all the hosts, I mean 0.0.0.0.
The older versions had the -b option to pass 0.0.0.0, I can't find any options to use over here.
A socket binding includes the following information: name -- logical name of the socket configuration that should be used elsewhere in the configuration. port -- base port to which a socket based on this configuration should be bound.
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.)
Edit standalone/configuration/standalone.xml and insert the tag any-address instead of inet-address bound to 127.0.0.1 - Example:
<interfaces> <interface name="management"> <inet-address value="127.0.0.1"/> </interface> <interface name="public"> <any-address/> </interface> </interfaces>
In the public interface, I've changed the original inet-address with any-address. After restarting, you'll be able to browse JBoss port 8080 over the network.
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