Hi,
for a new project i need to communicate over UDP. I tried for days but the result is always the same: receiving messages on UWP does not work.
With sockets-for-pcl and using the System.Net namespaces in platform-specific classes using dependency injection
the result remains the same. Android can send and receive messages, UWP can only send. I tried in an emulator, in a VM and on real devices.
To debug the messages i used PacketSender App .
I read about the network isolation on uwp, therefor I bind to the real IP, not a loopback or broadcast address. I have also enabled client and server networking in Package.appxmanifest.
Currently I am out of ideas and luck.
Could someone provide some code samples or give some input? This is a blocker for using xamarin for the whole App.
Regards,
VisualMelody
Answers
What you have done on the UWP side? Can you post some code to specify your issue?
Here are the tests I did:
using Sockets.Plugin (Sharpcaster.SocketsForPCL 2.0.4, also tried rda.SocketsForPCL 2.0.2);
Port seems to be open:
using Dependency Service
Port also seems to be open:
Result is always the same: on UWP the MessageReceived is never called, no output. Works on Android.
App has the following capabilities:
any idea someone? This is a real showstoper for the whole project.