Take a look at [this UDP-question](https://stackoverflow.com/questions/12864999/sending-and-receiving-udp-packets) and [this JSON-example](https://www.newtonsoft.com/json/help/html/DeserializeObject.htm). There are plenty of examples on how to use UDP with C# and also on how to handle JSON. From UDP you get (JSON-)strings (see examples) and from JSON-strings you can get objects via some JSON-library (see examples). Combine the two and you should be fine.
– JoeliusMay 27 '19 at 08:51
1
By the way your question is very broad and it would be nice to see some efforts which you've already made. Maybe the code you have up until now or the informations you know. We like to know exactly what you're stuck on not just "i need this, please help me". Good Luck!
– JoeliusMay 27 '19 at 08:52
If any mod or experienced poster sees this, should I make those two comments into an answer or what is the correct behaviour here? Also should I ask this question on meta or is this fine here (am still fairly new to so)?
– JoeliusMay 28 '19 at 08:47
@Joelius I think you are right. actually last three days I tried to solve this problem, but I didn't. Just now I solved the issue.
I think you already know I'm totally new at stack overflow. That's why I made this mistake.
By the way thank you for everything :)
– Mr.Tin TinMay 28 '19 at 09:36
Glad you could solve it! Should I put my comments into an answer which you can accept?
– JoeliusMay 28 '19 at 10:23