Skip to content

The UdpClient cannot listen to IPv6 multicast messages. #110889

Open

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?

Activity

  1. dotnet-policy-service commented on Dec 22, 2024

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @dotnet/ncl
    See info in area-owners.md if you want to be subscribed.

  2. changed the title [-]IPv6 multicast BUG[/-] [+]The UdpClient cannot listen to IPv6 multicast messages.[/+] on Dec 22, 2024
  3. dotnet-policy-service commented on Dec 22, 2024

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @dotnet/ncl
    See info in area-owners.md if you want to be subscribed.

  4. snikeguo commented on Dec 23, 2024

    @snikeguo
    Author
  5. removed
    untriagedNew issue has not been triaged by the area owner
    on Mar 18, 2025
  6. added this to the Future milestone on Mar 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions