- Home /
Unity Local network always disconnects after ~1053 seconds
Hi,
We have a setup where we have a standalone application that works as a server and 4 clients that connects to the server on a local network.
The Server uses NetworkServer.SendToAll() to send to all clients (https://docs.unity3d.com/ScriptReference/Networking.NetworkServer.html). Clients use NetworkClient to connect and send messages to the server (https://docs.unity3d.com/ScriptReference/Networking.NetworkClient.html).
We are currently facing an issue that all clients disconnect every time when about 1053 seconds has passed (Stopwatch timer). Disconnect error message is (Timeout). The error is independent of message send rate. We have tried 3 different networks (company networks) and the timeout happens on all of them.
Connection config (https://docs.unity3d.com/ScriptReference/Networking.ConnectionConfig.html) does not seem to have any settings regarding an overall timeout. Modifying ConnectTimeout,DisconnectTimeout,PingTimeout,MinUpdateTimeout has no effect either.
It's still unknown to us if this is a company network issue or Unity server/client issue. Is there anywhere information on how to fix/debug this issue? Is there some default timeout e.g. 1024 seconds when something stops working? Trying to reconnect after a client has disconnected results in the connection reconnecting for a couple of seconds and disconnecting again.
Your answer
Follow this Question
Related Questions
is LLAPI bandwidth limited? 0 Answers
Unity High Level Api Random Disconnect 0 Answers
Unity3D network disconnects on idle (VR Game) 1 Answer
Why dont this script work? 1 Answer