How do I change multicast address of JBoss cluster ?

There are different options to change the default multicast address depending on the version of JBoss / WildFly which you are using.

Changing the multicast address in WildFly

In WildFly the System Property which controls the default multicast address is jboss.default.multicast.address and defaults to

<socket-binding name="jgroups-udp" interface="private" port="55200" multicast-address="${jboss.default.multicast.address:}" multicast-port="45688"/>

Therefore, you can change it as follows:

$ ./ -Djboss.default.multicast.address=

You can also use the β€œ-u <value>” as a shortcut to the system property:

$ ./ -u

Please note that when using the jboss.socket.binding.port-offset it has no effect on multicast ports. Therefore if you need so define a server offset that will have no impact on the multicast address.

Changing the multicast address in JBoss 5

The -u (or --udp) command line switch may be used to control the multicast address used by the JGroups channels opened by all standard JBoss Enterprise Application Platform services.

$ ./ -u -g QAPartition -b -c production