Hello everyone.

The Mixed Reality Forums here are no longer being used or maintained.

There are a few other places we would like to direct you to for support, both from Microsoft and from the community.

The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.

For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.

If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.

And always feel free to hit us up on Twitter @MxdRealityDev.

Got UDP broadcasting to work and UDP multicast sending, but not multicast receiving

I'm trying out UDP communication in Unity with the Hololens. Since the .net sockets aren't available I looked at how things are done in UWP. I basically took this example: https://github.com/Microsoft/Windows-universal-samples/blob/master/Samples/DatagramSocket/cs/Scenario5_MulticastAndBroadcast.xaml.cs

The weird thing now is that I can get broadcasting to work on the device, both sending and receiving, but not multicasting. The Hololens can send multicasts that multiple laptops will receive, but when any device is sending multicast messages then they won't show up on the Hololens even though other devices will receive them.

If I run the UWP application on a laptop it does pick up the multicast messages (sent form a different laptop), so I know the messages are sent (Wireshark also shows them) and I implemented the receiving code with DatagramSocket and JoinMulticastGroup correctly. I also checked the capabilities for InternetClient, InternetClientServer and PrivateNetworkClientServer.

It's so weird that all the broadcasting stuff works on the Hololens and even sending multicast messages, just not receiving multicast message specifically on the device. What am I missing here?

Sign In or Register to comment.