Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The UdpClient cannot listen to IPv6 multicast messages. #110889

Open
snikeguo opened this issue Dec 22, 2024 · 3 comments
Open

The UdpClient cannot listen to IPv6 multicast messages. #110889

snikeguo opened this issue Dec 22, 2024 · 3 comments
Labels
area-System.Net.Sockets untriaged New issue has not been triaged by the area owner

Comments

@snikeguo
Copy link

snikeguo commented Dec 22, 2024

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?

@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Dec 22, 2024
Copy link
Contributor

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

@snikeguo snikeguo changed the title IPv6 multicast BUG The UdpClient cannot listen to IPv6 multicast messages. Dec 22, 2024
Copy link
Contributor

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

@snikeguo
Copy link
Author

@antonfirsov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.Net.Sockets untriaged New issue has not been triaged by the area owner
Projects
None yet
Development

No branches or pull requests

2 participants