admiralfreezbee has asked for the wisdom of the Perl Monks concerning the following question:

I'm using Sockets in my IPv6 application.
I'm doing this via the use Socket; and use Socket6; modules (not via IO:Socket).

I want my server to listen to the "multicast broadcast" messages of my server. How can I do this?

my $remoteServer = 'FF02::1:2'; socket(SOCKET, PF_INET6, SOCK_DGRAM, $proto) or die("socket: $!"); my $addr=pack_sockaddr_in6(666, inet_pton (PF_INET6,$remoteServer)); bind(SOCKET, $addr) or die("bind: $!");
This doesn't work (It says: Invalid argument: probably because FF02::1:2 is a multicast address