Skip to content

can't join Multicast group on Linux - no IGMP ADD_MEMBERSHIP report visible in Wireshark #19750

@rottor12

Description

@rottor12

I'm having trouble joining mcast group on Linux

I'm using the following code:

Socket sock = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
sock.Bind(new IPEndPoint("<LOCAL_NIC_IP>", MulticastGroupPort));
sock.SetSocketOption(SocketOptionLevel.IP, SocketOptionName.AddMembership, new MulticastOption(IPAddress.Parse("<MULTICAST_GROUP_IP>")));

but I can't see any ADD_MEMBERSHIP report in WireShark
and of course I'm not receiving any data

I've tried various combinations of above, but with no success

is it possible to receive data from multicast group without using UdpClient ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-System.Net.Socketsos-linuxLinux OS (any supported distro)questionAnswer questions and provide assistance, not an issue with source code or documentation.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions