Skip to content

The UdpClient cannot listen to IPv6 multicast messages. #110889

@snikeguo

Description

@snikeguo

Description

the UdpClient cannot listen to IPv6 multicast messages.
code:

Before this, someone else has encountered this issue: #83336

Reproduction Steps

 var localEndPoint = new IPEndPoint( IpAddrOfNetworkInterface, 15118);
 var udpClient = new UdpClient(localEndPoint);
 // 
var multicastAddress = IPAddress.Parse("FF02::1");
 udpClient.JoinMulticastGroup(multicastAddress);
 var remoteEndPoint= new IPEndPoint(IPAddress.IPv6Any, 0);
var data= udpClient.Receive(ref remoteEndPoint);
 Console.WriteLine("receive ipv6 Multicast Group message ok!");

Expected behavior

The console should output information.

Actual behavior

The console has no output.

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

I can receive multicast messages using a network debugging tool.
Image

received datas:
Image

There are multiple network interface on my computer, could that be the reason?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions