UWP for WMR DatagramSocket not receiving UDP data

I have an issue using DatagramSocket for receiving UDP data with Unity 2018.2.10f1 for deploying on Windows Mixed Reality Samsung Oddysey.

I’m using the code from: Unity UdpClient and UWP DatagramSocket for receiving UDP broadcasts. · GitHub to implement a UDP client to receive UDP data.

But my application don’t receive any data using this code:

_Socket.MessageReceived += _Socket_MessageReceived;

_Socket_MessageReceived method doesn’t get called.

What are doing wrong?

Thanks in advise.

Are you sending data from the same machine? Receiving data on UDP sockets is not supported if the sender is localhost. You need to send data from another machine.

1 Like

Yes. It works, I didn’t know it, that is not supported on the same machine. Thanks!

Thank you. Do you know if in the same machine with two network interfaces it will work? Thanks

No, it won’t work.