owda
April 8, 2026, 3:27pm
1
(Please make the title of your topic brief but informative, and post error messages under the next heading Details and error message(s) )
Description, details and error message(s)
When debugging, the connection times out after 5 seconds. Disable Connection Timeouts (Editor) is checked in the Editor settings.
Expected behaviour
The connection is not expected to time out.
Screenshots
If applicable, add screenshots to help explain the problem.
How to reproduce
Rate: (Choose one, or describe it yourself)
Once / Sometimes / Every time
Steps:
step
step
Environment
SDK:
Unity:
OS/Platform:
This setting that you mention modifies how the replication server is started, for local/dev.
When is this happening for you? Within the editor? On builds? What replication server is the game connecting to? Editor-started, cloud or client-hosted (launched via the game itself)?
owda
April 9, 2026, 8:45am
3
This happens when running in Editor with Player 2 on a virtual machine.
In case this is relevant, we are running Coherence version 2.0.0 and Unity’s Multiplayer Play Mode (MPPM) version 1.3.3 due to a bug with MPPM that was causing the virtual machine’s window to disappear on startup. The process for the second Unity editor window appeared be running, but as it was not visible, it was preventing us from testing on a single machine.
owda
April 9, 2026, 8:48am
4
Apologies, I forgot to mention that once in game, we are using a local replication server
owda
April 9, 2026, 8:50am
5
And the games are client hosted
Hey I’ve missed these answers completely, sorry about that.
Is this still happening?
Are you opening the RS through the menu item (coherence > Run Replication Server…)?
Can you paste here the command: and args: lines output from the RS stdout?
Additionally, any logs both in Unity’s Console and in RS that point out to the timeout.
owda
July 1, 2026, 11:23am
7
No we run the RS in game. This is the error that fires when we continue the breakpoint.
ConnectionDeniedException: Exception of type ‘Coherence.Connection.ConnectionDeniedException’ was thrown., DenyReason: Timeout, HasPayload: False
UnityEngine.Debug:LogException(Exception)
KITS.Platforms.Steam.SteamManager:OnConnectionError(Exception) (at Assets/Scripts/Runtime/Platforms/Steam/SteamManager.cs:704)
FITS2.Network.ReplicationServerSystem:OnReplicationServerConnectionError(CoherenceBridge, ConnectionException) (at Assets/Scripts/Runtime/Network/ReplicationServerSystem.cs:428)
FITS2.Network.ReplicationServerSystem:b__5_2(CoherenceBridge, ConnectionException) (at Assets/Scripts/Runtime/Network/ReplicationServerSystem.cs:52)
UnityEngine.Events.UnityEvent2:Invoke(CoherenceBridge, ConnectionException) Coherence.Toolkit.CoherenceBridge:HandleConnectionError(ConnectionException) (at ./Library/PackageCache/io.coherence.sdk@38b0585e01e1/Coherence.Toolkit/CoherenceBridge.cs:1590) Coherence.Core.ClientCore:HandleError(ConnectionException) (at ./Library/PackageCache/io.coherence.sdk@38b0585e01e1/Coherence.Core/ClientCore.cs:420) Coherence.Brisk.Brisk:HandleError(ConnectionException) (at ./Library/PackageCache/io.coherence.sdk@38b0585e01e1/Coherence.Brisk/Brisk.cs:681) Coherence.Brisk.Brisk:ProcessOobMessage(IOobMessage) (at ./Library/PackageCache/io.coherence.sdk@38b0585e01e1/Coherence.Brisk/Brisk.cs:512) Coherence.Brisk.Brisk:ProcessReceivedPacket(IInOctetStream, IPEndPoint) (at ./Library/PackageCache/io.coherence.sdk@38b0585e01e1/Coherence.Brisk/Brisk.cs:472) Coherence.Brisk.Brisk:Receive(List1) (at ./Library/PackageCache/io.coherence.sdk@38b0585e01e1/Coherence.Brisk/Brisk.cs:253)
Coherence.Core.ClientCore:ReceiveAndProcessPackets() (at ./Library/PackageCache/io.coherence.sdk@38b0585e01e1/Coherence.Core/ClientCore.cs:511)
Coherence.Core.ClientCore:UpdateReceiving() (at ./Library/PackageCache/io.coherence.sdk@38b0585e01e1/Coherence.Core/ClientCore.cs:505)
Coherence.Toolkit.CoherenceBridge:ReceiveFromNetworkAndUpdateTime() (at ./Library/PackageCache/io.coherence.sdk@38b0585e01e1/Coherence.Toolkit/CoherenceBridge.cs:1491)
Coherence.Toolkit.CoherenceBridge:ReceiveFromNetwork() (at ./Library/PackageCache/io.coherence.sdk@38b0585e01e1/Coherence.Toolkit/CoherenceBridge.cs:1355)
Coherence.Toolkit.PlayerLoop.CoherenceReceiver:ReceiveFromNetwork() (at ./Library/PackageCache/io.coherence.sdk@38b0585e01e1/Coherence.Toolkit/PlayerLoop/CoherenceLoop.cs:329)
owda
July 1, 2026, 1:15pm
9
fishing through the logs, the disconnect-timeout is 6 seconds which is what we’re seeing.
{“level”:“info”,“project-id”:“local”,“room-id”:1,“room-uid”:30234962,“schema-name”:“”,“schema-hash”:“b468c3097b36c426f90d259f4cf4397cfbe25a99”,“max-clients”:3,“max-entities”:1000,“idle-timeout”:“1m0s”,“disconnect-timeout”:“6s”,“room-secret”:true,“tags”: ,“time”:“2026-01-20T11:48:21.26Z”,“message”:“launching room”}
owda
July 1, 2026, 1:51pm
10
Yes it looks like the disconnect-timeout is correct when starting the RS but incorrect when it starts the room:
Server log: --disconnect-timeout 4294967295
Server log: 14:44:36.121 INF launching room disconnect-timeout=6s idle-timeout=1m0s max-clients=3 max-entities=1000 project-id=local room-id=1 room-secret=true room-uid=1345441326
Does this give you enough to go on for now @frarees ?
Yes that’s enough to spot what’s going on.
The “Disable Connection Timeouts (Editor)” only works for Replication Servers started through the editor directly (via menu item, for example) and not for the ones run through runtime.
As a workaround, try this: when running the RS as part of runtime, set the --env dev flag:
Launcher.Create(config, "--env dev");