How to configure JBoss to bind to a different IP ?

If you want to change the jboss.bind.address property use the “-b” option in when calling the JBoss startup script (run.sh or run.bat in the bin directory).

On WildFly and JBoss EAP you can bind the public interfaces using:

standalone.sh -b 192.168.0.1

On the other hand, you can bind Management Interfaces using:

standalone.sh -bmanagement 192.168.0.1

Older JBoss versions (4-5-6):

If you are running an older JBoss version, please use the following command to choose the Bind address:

run.sh -b 192.168.0.1

That enables jboss to listen for connections on the address 192.168.0.1 of the machine.

run.sh -b 0.0.0.0

That enables listening on all IP addresses of the machine (if multihomed)

Please note that this topic is discussed in greater detail in this tutorial: How to bind WildFly to an IP address

Found the article helpful? if so please follow us on Socials