Unity server disconnects after a few minutes
Hello. My friends and I are trying to play the game we made, however after being in a server with each other for anywhere from 5 - 20 minutes it will usually crash and everyone but the host will be disconnected. I dont think I'm sending too much data over the network but I have no idea of knowing how much I am sending per player. I am no expert at this.
.
This is the error I get:
.
Attempt to send to not connected connection {1}
UnityEngine.Networking.NetworkIdentity:UNetStaticUpdate()
Failed to send internal buffer channel:0 bytesToSend:10
UnityEngine.Networking.NetworkIdentity:UNetStaticUpdate()
Send Error: WrongConnection channel:0 bytesToSend:10
UnityEngine.Networking.NetworkIdentity:UNetStaticUpdate()
ServerDisconnected due to error: Timeout
UnityEngine.Networking.NetworkIdentity:UNetStaticUpdate()
.
This happens when there are two or five people in the server and it seems just to happen at a random time and I have no idea why. Any help with this annoying issue would be greatly appreciated.