Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Send and receive multicast messages doesn't work with FF02::1

151 views
Skip to first unread message

ati

unread,
Dec 8, 2009, 3:57:06 AM12/8/09
to
Hi,
i tried to send and receive ipv6 multicast messages (.Net 2.0, C#) and
use the "all nodes" address FF02::1.

But my server app got no requests if i set up the socket like this:

_listener = new Socket(AddressFamily.InterNetworkV6, SocketType.Dgram,
ProtocolType.Udp);
_listener.SetSocketOption(SocketOptionLevel.Socket,
SocketOptionName.Broadcast, 1);
IPEndPoint receiveEndPoint = new IPEndPoint(IPAddress.IPv6Any,
_listenPort);
_listener.Bind(receiveEndPoint);

// ReSharper disable AssignNullToNotNullAttribute
_listener.SetSocketOption(
SocketOptionLevel.IPv6,
SocketOptionName.AddMembership,
new IPv6MulticastOption(IPAddress.Parse("FF02::1")));

If i use the address FF02::3 all works fine... any suggestions? Where
is my fault?

tia

Farooque Khan

unread,
Dec 23, 2009, 5:59:22 AM12/23/09
to
I think that's because FF02::1 is a broadcast address, you can't really
subscribe a socket membership to it.

--


-Farooque


"ati" <andre....@googlemail.com> wrote in message
news:001e428e-4485-4560...@z41g2000yqz.googlegroups.com...

ati

unread,
Jan 14, 2010, 8:11:33 AM1/14/10
to
Ok, but how can i listen to multicast (broadcast) messages on FF02::1
instead?

On 23 Dez. 2009, 11:59, "Farooque Khan" <farooque-nos...@info-spectrum-


removenospam.com> wrote:
> I think that's because FF02::1 is a broadcast address, you can't really
> subscribe a socket membership to it.
>
> --
>
> -Farooque
>

> "ati" <andre.tip...@googlemail.com> wrote in message

0 new messages