in reply to How to properly send and receive data from multicast?

On the sender side if I do the following it works for me:
my $socket = new IO::Socket::Multicast(Proto=>'udp', PeerAddr=>'239.1. +1.1:9999') or die "cannot create socket: $!\n"; $socket->send("this is multicast");
See the EXAMPLE section of 'perldoc IO::Socket::Multicast'

Replies are listed 'Best First'.
Re^2: How to properly send and receive data from multicast?
by Anonymous Monk on Sep 01, 2024 at 04:19 UTC

    That's weird, it doesn't work for me at all. I copied the example from the document, but it also didn't work.

      Multicast may be blocked by your computer setup, or it might not be supported (or be actively blocked) by your network setup.

      You could run network analysis tools (for example Wireshark) on both ends of the connection to see if the packets are send correctly and if they get to the destination host.

      PerlMonks XP is useless? Not anymore: XPD - Do more with your PerlMonks XP
      Also check out my sisters artwork and my weekly webcomics