From: Dan Janowski Date: 2004-05-22T03:30:37+09:00 Subject: Re: Multicasting with Ruby? This particular address is: $ host 228.5.6.8 8.6.5.228.in-addr.arpa domain name pointer reserved-multicast-range-NOT-delegated.example.com. An official mcast test address. Find out more about multicast addressing here: http://rfc3171.x42.com/ I'm not sure why Your instance of Red Hat would fail to run. Do you have to compile multicast into the Kernel? Dan On May 21, 2004, at 11:55, James Britt wrote: > Daemon Le wrote: > >> Thanks Dan! It worked beautifully. Changing "host" to "addr" (OK, >> that was dumb on my part), getting rid of the connect, and doing >> IP_ADD_MEMBERSHIP after bind fixed all my current woes. Here's with >> your corrections as it runs on the Redhat Linux box... >> --- begin ---------------------------------------- >> require 'socket' >> port = 1212 >> addr = '228.5.6.8' > > Pardon my networking ignorance, but in this example, where does the > address 228.5.6.8 come from? Or does it matter much? > > I'm trying learn more about multicasting, but when I run the example > on my Red Hat box I get > > mcast.rb:13:in `setsockopt': No such device (Errno::ENODEV) > > where line 13 is > sock.setsockopt(Socket::IPPROTO_IP, Socket::IP_ADD_MEMBERSHIP, mreq) > > ruby -v gives: > ruby 1.8.1 (2003-12-25) [i586-linux] > > > Thanks, > > > James > >