(C#) UDP broadcast between unity editor and windows phone
Hello,
For a game i'm currently making i want to broadcast an UDP message from desktop across LAN to a windows phone which is listening for incoming UDP messages
From what i've gathered so far, windows phone should use a Windows.Networking.DatagramSocket while desktop should use System.Net.UdpClient
the reason for this is that System.Net.UdpClient does not exist in NetCore (or in windows phone's mono compiler), while Windows.Networking.DatagramSocket does not exist in "regular" mono
The code i have appears to be functioning (there are no errors) however the phone does not see any incoming messages
I have checked both devices' local IP adresses, and desktop is on 192.168.0.3, The phone has 2 ip adresses associated with it, one likely being the mobile data connection and the other is the wifi at 192.168.0.8
here is the full implementation of the sender (desktop) and receiver(phone) classes: http://pastebin.com/H0KGMz0B
Thanks in advance for any help with this
Have you managed to find a solution yet? It must be possible as unity's NetworkDiscovery uses UDP broadcasting to find other devices on the network. I would use that but I find that it hardly ever actually works.
Your answer
Follow this Question
Related Questions
UDPClient can't receive and send ? 0 Answers
UDP Client receiving Disposed error 0 Answers
RPC isn't called when windowns lose focus 0 Answers
HELP! Interactive instalation- networking 0 Answers
Unity Socket Port-forward 0 Answers