WildFly domain Jgroups allways binding to localhost interface

186 views
Skip to first unread message

valsaraj pv

unread,
May 31, 2021, 11:06:18 AM5/31/21
to WildFly
Hi,

WildFly 16 domain Jgroups allways bind to localhost interface. 
In old versions, it was bound to the IP specified in jboss.bind.address.

I saw this solution https://developer.jboss.org/thread/272517  in standalone mode but there is no private interface in domain conf files.
Are there any specific settings required?

thanks!

Yeray Borges Santana

unread,
Jun 1, 2021, 5:22:02 AM6/1/21
to WildFly
Hello,

You have to use jboss.bind.address.private instead of jboss.bind.address. 

Take a look at your domain.xml. You will find there you can use jboss.bind.address.private expression to configure the Inet Address of your private interface:

 <interfaces>
        ...
        <interface name="private">
            <inet-address value="${jboss.bind.address.private:127.0.0.1}"/>
        </interface>
        ...
</interfaces>

By default, JGroups use the private interface to configure the JGroups socket-bindings. So, to configure your protocol binding address by using the default configuration, start your domain by using $WFLY_HOME/bin/domain.sh -Djboss.bind.address.private=<YOUR IP>. That should work.
Reply all
Reply to author
Forward
0 new messages