On 31/05/2013 06:36, Rainer Jung wrote: > On 30.05.2013 22:15, ma...@apache.org wrote: >> Author: markt >> Date: Thu May 30 20:15:15 2013 >> New Revision: 1487993 >> >> URL: http://svn.apache.org/r1487993 >> Log: >> Finally figured out how t get multicast working locally on my mac. Document >> it. >> >> Modified: >> tomcat/trunk/test/org/apache/catalina/tribes/TesterMulticast.java >> >> Modified: tomcat/trunk/test/org/apache/catalina/tribes/TesterMulticast.java >> URL: >> http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/catalina/tribes/TesterMulticast.java?rev=1487993&r1=1487992&r2=1487993&view=diff >> ============================================================================== >> --- tomcat/trunk/test/org/apache/catalina/tribes/TesterMulticast.java >> (original) >> +++ tomcat/trunk/test/org/apache/catalina/tribes/TesterMulticast.java Thu >> May 30 20:15:15 2013 >> @@ -24,6 +24,23 @@ import java.net.UnknownHostException; >> /** >> * A simple multicast test that replicates the core elements of Tomcat's >> * multicast membership. If this works then multicast membership should >> work. >> + * Useful notes for various operating systems follow.<p> >> + * OSX >> + * <ul> >> + * <li>Multicast is not routed by default.</li> >> + * <li>Check if multicast is routed by looking at the routing table via >> + * <code>netstat -nr</code>. If there is no line the output for >> 228.0.0.4 >> + * then multicast will not work.</li> >> + * <li>Add a route for multicast using >> + * <code>sudo route -nv add -net 228.0.0.4 -interface en0</code></li> >> + * <li>The firewall blocks multicast bewteen processes on the local machine >> so >> + * you will need to disable the OSX forewall before the test below will >> + * work.</li> >> + * </ul> > > Shouldn't the multicast route be for network 224.0.0.0 with netmask > 240.0.0.0?
For the general case. > I think the above is just an example multicast address and typical > system will not have a route for that one, but could and should have a > route for multicast in general (224.0.0.0/240.0.0.0). OSX doesn't have any multicast routes present by default. The notes could certainly be amended to reflect the more general case. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org