Permalink
Browse files

added Ubuntu multicast routing note

  • Loading branch information...
1 parent 9f1f881 commit 69c4f52c17ff23b0a42dca8165c5cdfbb7bb29bc chrisdew committed Mar 14, 2011
Showing with 9 additions and 0 deletions.
  1. +9 −0 README.md
View
@@ -45,6 +45,15 @@ Setting the Multicast Interface:
socket.setMulticastInterface("192.168.0.3"); // Where 192.168.0.3 is the IP of the interface you want to use Multicast on
socket.setMulticastInterface(); // If you want the system to figure out which to use (commonly the first non-loopback interface)
@chrisdew

chrisdew Mar 14, 2011

Owner

Is this OSX-specific behaviour, or have you seen this on another Unix?

+
+Ubuntu/Debian specific notes on setMulticastInterface():
+
+Add something like the lines below to /etc/network/interfaces to control which interface is the default for multicast. By default, multicast uses the default route, not the first non-loopback interface.
+
+ up route add -net 224.0.0.0 netmask 224.0.0.0 eth0
+ down route del -net 224.0.0.0 netmask 224.0.0.0 eth0
+
+
Leaving a Multicast Group:
socket.leaveGroup("225.0.0.73");

0 comments on commit 69c4f52

Please sign in to comment.