We have been developing our Java applications under OSX for some time. Since switching to OSX Lion (version 10.7.1 now), we see sporadic issues around multicast packets going into the bit bucket and we don't know why. These are unit tests that are in the same VM connecting across the loopback. Sometimes disabling an interface resolves this. Other times it doesn't.

My only guess at this time is that it is related to multicast membership on different interfaces. I've noticed that even if an interface is offline (rj45 not plugged in or wifi disabled) that multicast groups still are attached to the interface. Is that proper?

IPv4 Multicast Group Memberships
Group                   Link-layer Address      Netif             <none>                  lo0             <none>                  lo0             <none>                  lo0               <none>                  lo0             1:0:5e:0:0:fb           en1 << offline             1:0:5e:0:4b:4b          en1 << offline               1:0:5e:0:0:1            en0             1:0:5e:0:0:fb           en0             1:0:5e:0:4b:4b          en0

Is there any way to tune these memberships? I've tried various commands with route (del and others) and ifconfig (up/down) to no avail. Am I barking down the wrong hole with this?



Turns out that if I unplug by hardwired ethernet and disable Wifi then my test can discover each other over multicast. But if either interface is enabled, it does not work.

  • Can you provide some more detail about what commands you tried with route and ifconfig? Also can you provide some more insight about what the network configuration is that you are trying to achieve success with? Do you need to talk between machines on a lan, or just localhost? We also have a java app using jgroups and haven't run into these issues on Lion, it sounds like the app isn't binding its multicast groups properly at first glance. – polynomial Sep 22 '11 at 1:06
  • I've updated the question. I just tried route del and others and ifconfig down and up and others. These are unit tests in the same VM connecting across loopback. – Gray Sep 22 '11 at 13:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.