while running some testing of new features we are implementing, my colleague and I ran into the following issue: once the second of us connects to the game, both connections get dropped. This makes very little sense, and I will proceed to describe the issue with more detail:
A week ago, we implemented a feature in which local apps sent the server a request to create a voxel in space and, if the request passed the requirements, it was forwarded to all the players (including the one who sent the request) so Unity would instantiate that voxel. So far so good.
Today, we were testing character movement in space. One of us can connect to the server and move around, and the server keeps track of the player. But when the second of us connects, the last connection or even both get dropped, (err=Connection lost). I did a bit of research in Program.cs and apparently the sockets are being closed when the second player connects to the server. We go back to the previous version and everything works fine (the three of us can connect), but in this last version it simply drops the connections for no apparent reason.
Any idea why this could be happening? Thanks a lot beforehand,