© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
12 replies
cap5lut

UDP Multicast does not work as expected [Answered]

I am starting to play around with UDP for some IPC stuff and wrote a simple UDP Multicast application just to have a playground to advance from, but sadly its not going as expected.

First of all: here is the code of the small program https://gist.github.com/cap5lut/ce3bfda6a0997b647a67a20d78d9e189

My expectation was that the writer sends the data and both readers would receive the data, resulting in an output like
writer: sending 5
reader 1: read 5
reader 2: read 5
writer: sending 5
reader 1: read 5
reader 2: read 5

but that is not the case, only the writer and reader 1 is spitting out stuff.

what am I doing wrong?
Gist
UDP Multicast Test.cs
GitHub Gist: instantly share code, notes, and snippets.
UDP Multicast Test.cs
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Cannot receive packets from multicast udp sender
C#CC# / help
2w ago
typeof(T).IsAssignableFrom does not work as I expected
C#CC# / help
10mo ago
Why does this not work? [Answered]
C#CC# / help
4y ago