Unity Server closes down after 8 failed connection attempts to steam

  • Unlike RW-Java server - which stays up even if Internet or steam service goes down, Unity Server will shut down after 8 connection attempts. This inhibits LAN play, also prevents server from coming back online when steam connectivity is restored:

    Establishing connection...

    [WARNING] [03:36:11] [STEAM] Server connection failed! k_EResultNoConnection (attempt: 1, still retrying: True)

    [WARNING] [03:36:45] [STEAM] Server connection failed! k_EResultNoConnection (attempt: 2, still retrying: True)

    [WARNING] [03:36:45] [STEAM] Server connection failed! k_EResultNoConnection (attempt: 3, still retrying: True)

    [WARNING] [03:37:02] [STEAM] Server connection failed! k_EResultNoConnection (attempt: 4, still retrying: True)

    [WARNING] [03:37:20] [STEAM] Server connection failed! k_EResultNoConnection (attempt: 5, still retrying: True)

    [WARNING] [03:37:46] [STEAM] Server connection failed! k_EResultNoConnection (attempt: 6, still retrying: True)

    [WARNING] [03:38:26] [STEAM] Server connection failed! k_EResultNoConnection (attempt: 7, still retrying: True)

    [WARNING] [03:38:53] [STEAM] Server connection failed! k_EResultNoConnection (attempt: 8, still retrying: True)

    [WARNING] [03:38:56] UNABLE TO CONNECT TO PLATFORM: STEAM

    [WARNING] [03:38:56] UNABLE TO CONNECT TO PLATFORM: STEAM

    [WARNING] [03:38:56] UNABLE TO CONNECT TO PLATFORM: STEAM

    [WARNING] [03:38:56] UNABLE TO CONNECT TO PLATFORM: STEAM

    [WARNING] [03:38:56] UNABLE TO CONNECT TO PLATFORM: STEAM

    [WARNING] [03:38:56] Exit (1)

    "The past is history, the future a mystery, but today is a gift, which is why we call it the Present."

  • Juggernaut

    Changed the title of the thread from “Unity Server closes down after 8 connection attempts to steam” to “Unity Server closes down after 8 failed connection attempts to steam”.
  • The Java version indeed ignored this event (it just printed it to log). But it didn't let new players in if the connection to Steam was lost... :thinking:


    In the new version, however, there are two scenarios where the server shuts down: If the connection to Steam gets lost, it will retry to connect up to 10 times (then the server shuts down). But the server also checks this during startup (then the server will wait up to 3 minutes, and if it wasn't able to connect to Steam, it will also shutdown) - this is apparently what happened in your log (this is where the "UNABLE TO CONNECT TO PLATFORM: STEAM" is printed).


    The former is indeed problematic, I think it's probably better to remove this behaviour (or at least greatly increase the number of reconnect attempts). New players won't be able to join though, but players who are currently online could still continue playing.


    Not sure about the latter though... we could increase the timeout value. At a certain point, Steam may also stop trying to reconnect (not sure when this happens exactly, perhaps only after a few hours, IDK), maybe that would also be a reason to shut the server down.


    For LAN play, the dedicated server indeed has no specific handling for that atm :/ The Java version had a setting "server_lan_mode", which disabled authentication, maybe we could add a similar setting to the new version ;)

Participate now!

Don’t have an account yet? Create a new account now and be part of our community!