- Home /
Question by
vanofthedawn12 · Jan 23, 2013 at 02:11 AM ·
c#networkingi
Making a list of distinct IPs broadcasting UDP
Hello, good day!
I have managed to create a very simple UDP sending and receiving script to send and receive messages from a specified multicast group.. the game we are creating listens on one port and sends through another port (2013 and 2013)..
There is no problem if there is only one game creator, the ip is being stored in a List<> but when another player creates a game, the List<> goes filled up very fast and my "check if there is the same ip on the list already" code fails and unity crashes.. dunno if the receive is too fast or somthing
Btw, I'm using UDPClient and multihreading
Thanks for those who will spare their precious time,
-Jece
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613091436im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
how to find out if player hosted game 1 Answer
Multiplayer desynchronize when grabbing an object by code. 0 Answers
SyncListString not changing in a Command 0 Answers