[ https://issues.apache.org/jira/browse/ARTEMIS-2341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17836849#comment-17836849 ]
Justin Bertram commented on ARTEMIS-2341: ----------------------------------------- [~clebertsuconic], can you verify this? > Instructions for multicast setup 'route add' on MacOS > ----------------------------------------------------- > > Key: ARTEMIS-2341 > URL: https://issues.apache.org/jira/browse/ARTEMIS-2341 > Project: ActiveMQ Artemis > Issue Type: Improvement > Environment: MacOS > Reporter: Federico Valeri > Priority: Major > > UDP discovery on localhost (all the nodes are in one machine): the MacOS > command to enable the multicast route to the loopback interface doesn't work > [1]. > > We should change the command to: > {code} > sudo route -nv add -net 231.7.7.8 -interface lo0 > {code} > Replace 231.7.7.8 with the desired address in the multicast range. > To disable the rule, just drop it from the routing table: > {code} > sudo route -v delete -inet 231.7.7.8 > {code} > > Remember to also set the localBindAddress to 127.0.0.1 on clients: > {code:java} > UDPBroadcastEndpointFactory udpConfig = new UDPBroadcastEndpointFactory(); > udpConfig.setGroupAddress("231.7.7.8").setGroupPort(9876).setLocalBindAddress("127.0.0.1"); > DiscoveryGroupConfiguration dgConfig = new DiscoveryGroupConfiguration(); > dgConfig.setBroadcastEndpointFactory(udpConfig); > ConnectionFactory cf = > ActiveMQJMSClient.createConnectionFactoryWithHA(dgConfig, JMSFactoryType.CF); > {code} > Or using JNDI: > {code} > connectionFactory.ConnectionFactory = > udp://231.7.7.8:9876?localBindAddress=127.0.0.1 > {code} > > [1] > [https://activemq.apache.org/components/artemis/documentation/latest/perf-tuning.html#udp-not-working] -- This message was sent by Atlassian Jira (v8.20.10#820010)