- Home /
In UNET LLAPI, two sockets with same ID and port on one machine
In UDP, you normally can't have two sockets with the same ID and port on the same machine, but there is a setting that lets you do this. I need to have two sockets with the same ID and port on the same machine in order to debug my game. How can I turn this setting on from UNET's LLAPI?
Answer by rasputingoldfish · Sep 03, 2015 at 10:58 PM
The sockets don't need to have the same port in order to connect. You just have to pass the right port in the Connect function.
I discovered this by reading the code in the example on this thread: http://forum.unity3d.com/threads/unet-sample-projects.331978/
This behavior is not mentioned in the docs.
Your answer
Follow this Question
Related Questions
UNet - Where does "normal" code run? 1 Answer
uNet Connection to IPv6 [Networking] 0 Answers
uNet Offline and Online Scenes the Same 2 Answers
Unet - NetworkServer.Spawn() correct usage 3 Answers
[UNet] How I can send Command to non-player object? 1 Answer