# Dedicated server connection timeout

**URL:** <https://forums.unrealengine.com/t/dedicated-server-connection-timeout/1255453>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, crash, CPP, question\
**Created:** [August 9, 2023, 8:21am UTC](https://forums.unrealengine.com/t/dedicated-server-connection-timeout/1255453 "2023-08-09T08:21:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![JTSContents](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JTSContents](https://forums.unrealengine.com/u/JTSContents)\
**Post date:** [August 9, 2023, 8:21am UTC](https://forums.unrealengine.com/t/dedicated-server-connection-timeout/1255453/1 "2023-08-09T08:21:49Z")

</div>

Hello  
I have a dedicated server.  
When my clients get crash or something unexpected exit from server, after a few moment, the server logs out “Connection Timeout” and the server restarts. so, other clients that have no problem also follow the server which means returning to initial level.

```auto
[2023.08.10-06.34.33:372][851]LogNet: Warning: UNetConnection::Tick: Connection TIMED OUT. Closing connection.. Elapsed: 10.02, Real: 10.02, Good: 10.02, DriverTime: 80.71, Threshold: 10.00, [UNetConnection] RemoteAddr: 192.168.0.23:62186, Name: IpConnection_2147482434, Driver: GameNetDriver IpNetDriver_2147482495, IsServer: YES, PC: BP_PlayerController_C_2147482430, Owner: BP_PlayerController_C_2147482430, UniqueId: Null:DESKTOP-1IIHR11-F6F07AA449EC964AD9A1F89C434009A3
[2023.08.10-06.34.33:373][851]LogNet: Error: UEngine::BroadcastNetworkFailure: FailureType = ConnectionTimeout, ErrorString = UNetConnection::Tick: Connection TIMED OUT. Closing connection.. Elapsed: 10.02, Real: 10.02, Good: 10.02, DriverTime: 80.71, Threshold: 10.00, [UNetConnection] RemoteAddr: 192.168.0.23:62186, Name: IpConnection_2147482434, Driver: GameNetDriver IpNetDriver_2147482495, IsServer: YES, PC: BP_PlayerController_C_2147482430, Owner: BP_PlayerController_C_2147482430, UniqueId: Null:DESKTOP-1IIHR11-F6F07AA449EC964AD9A1F89C434009A3, Driver = GameNetDriver IpNetDriver_2147482495
[2023.08.10-06.34.33:373][851]LogNet: NetworkFailure: ConnectionTimeout, Error: 'UNetConnection::Tick: Connection TIMED OUT. Closing connection.. Elapsed: 10.02, Real: 10.02, Good: 10.02, DriverTime: 80.71, Threshold: 10.00, [UNetConnection] RemoteAddr: 192.168.0.23:62186, Name: IpConnection_2147482434, Driver: GameNetDriver IpNetDriver_2147482495, IsServer: YES, PC: BP_PlayerController_C_2147482430, Owner: BP_PlayerController_C_2147482430, UniqueId: Null:DESKTOP-1IIHR11-F6F07AA449EC964AD9A1F89C434009A3'
[2023.08.10-06.34.33:374][851]LogTemp: Open lobby : Event NetworkError = ConnectionTimeout
[2023.08.10-06.34.33:494][851]LogPackageName: SearchForPackageOnDisk took 0.120s, but failed to resolve lobby.umap.
[2023.08.10-06.34.33:495][851]LogNet: UNetConnection::Close: [UNetConnection] RemoteAddr: 192.168.0.23:62186, Name: IpConnection_2147482434, Driver: GameNetDriver IpNetDriver_2147482495, IsServer: YES, PC: BP_PlayerController_C_2147482430, Owner: BP_PlayerController_C_2147482430, UniqueId: Null:DESKTOP-1IIHR11-F6F07AA449EC964AD9A1F89C434009A3, Channels: 15, Time: 2023.08.10-06.34.33
[2023.08.10-06.34.33:497][851]LogNet: UChannel::Close: Sending CloseBunch. ChIndex == 0. Name: [UChannel] ChIndex: 0, Closing: 0 [UNetConnection] RemoteAddr: 192.168.0.23:62186, Name: IpConnection_2147482434, Driver: GameNetDriver IpNetDriver_2147482495, IsServer: YES, PC: BP_PlayerController_C_2147482430, Owner: BP_PlayerController_C_2147482430, UniqueId: Null:DESKTOP-1IIHR11-F6F07AA449EC964AD9A1F89C434009A3
[2023.08.10-06.34.33:662][852]LogPackageName: SearchForPackageOnDisk took 0.160s, but failed to resolve lobby.umap.
[2023.08.10-06.34.33:662][852]LogNet: Browse: /Game/Maps/TestLobby
[2023.08.10-06.34.33:663][852]LogNet: TravelFailure: InvalidURL, Reason for Failure: 'Invalid URL: /Game/Maps/TestLobby'
[2023.08.10-06.34.33:663][852]LogNet: TravelFailure: ClientTravelFailure, Reason for Failure: 'Invalid URL: /Game/Maps/TestLobby'

```

Generally, after `LogNet: UChannel::Close:`, there should be a message that` No game present to leave for session`. But my server suddenly travel to somewhere and return to server’s start map.

Ultimately what i want is that even one client gets crash, the server goes on without any connection timeout.  
Thank you in advance

---

<div class="post-metadata">

**Author:** ![Bojann](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bojann/32/906560_2.png) [@Bojann](https://forums.unrealengine.com/u/Bojann)\
**Post date:** [August 9, 2023, 8:33am UTC](https://forums.unrealengine.com/t/dedicated-server-connection-timeout/1255453/2 "2023-08-09T08:33:39Z")

</div>

Dedicated server does not behave like that, at least on my end when I tested my game on dedicated server. If client crashes (on the client side), all is good. But if client crashes on the server side, then it’s a problem. Because the whole game on server crashed, and therefore everyone have that timeout issue. You should check what is causing the crash and fix it.

---

<div class="post-metadata">

**Author:** ![JTSContents](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JTSContents](https://forums.unrealengine.com/u/JTSContents)\
**Post date:** [August 10, 2023, 6:58am UTC](https://forums.unrealengine.com/t/dedicated-server-connection-timeout/1255453/5 "2023-08-10T06:58:01Z")

</div>

I added my server’s log. I checked another dedicated server, it worked as you said. even though one client gets crash, the client leave alone and there is no impact on server. but my project’s server seems to travel somewhere and return back to lobby.  
Anyway thank you for your reply.

---

<div class="post-metadata">

**Author:** ![JTSContents](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JTSContents](https://forums.unrealengine.com/u/JTSContents)\
**Post date:** [August 11, 2023, 12:59am UTC](https://forums.unrealengine.com/t/dedicated-server-connection-timeout/1255453/6 "2023-08-11T00:59:08Z")

</div>

It was my fault. In Blueprint of GameInstance, there was a handling for network error event(NetworkErrorEvent Node). That node send server and clients to initial level and the client’s crash or unexpected exit seems to triggers the NetworkErrorEvent. After unlink the node, it works fine.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [September 10, 2023, 12:59am UTC](https://forums.unrealengine.com/t/dedicated-server-connection-timeout/1255453/7 "2023-09-10T00:59:49Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
