You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Netcode] Host migration – keep the lobby (and later the match) alive when the host leaves #123
Today: when the host really leaves (closes the game), the session is over for everyone – in the lobby and in a running match. Short drops of the host are already being handled (#116, #117, #122); this issue is about the host actually leaving.
Goal
Stage 1 – lobby: if the host leaves the lobby (before a match or between matches), another player takes over automatically and the group stays together. A good moment for this is right after a match, when the host leaves and the others want to play on.
Best connection as host: when a new host is needed, pick the player with the most stable connection to everyone (fewest drops, good routes to all players). Optionally suggest that player when a match is created.
Stage 2 – running match: keep the mission going when the host leaves mid-match. Every player already runs the whole mission in lockstep, so the game state isn't lost; the work is in teaching the game to continue and hand the host role to another player without desyncs. This starts as an analysis.
Notes
In Line of Contact the inputs go directly between all players, so the host doesn't add delay. What makes the host special is that the original game ends the session when the host is gone – that's why the most stable player should be host.
The network statistics after 0.6.3 will show how often hosts really leave versus briefly drop.
Thanks for the request – part of it is in 0.6.3, the rest comes later in a cleaner form.
What's in 0.6.3 (experimental, on by default): host migration in matches
The host leaves in the middle of a mission – the mission goes on. It turned out the host has no special role in a running mission: every game works out time, victory and who left on its own. What ended the match for everyone was the network side – when the host's lobby closed, every game dropped every other player. Now steelnet keeps the lobby and the mission goes on for everyone else, as long as the host's side still has a pilot (a side with nobody left loses, like in the original game).
The most stable player becomes the new host. steelnet decides, not the games: fewest connection drops in this session, direct connections before relays, then the lowest worst-case ping to everyone else. Only what the server itself sees or what both sides of a connection agree on counts, so nobody can talk themselves into the host role. You see " left – is now the host".
After the mission the room code stays valid and the other players stay connected. The new host creates the next match and everybody else finds it under Search Match, the same way you start a new round anyway.
It can be switched off under Multiplayer › Match & network.
Not in 0.6.3 – coming later: when the host leaves in the lobby (before a match or between two matches), the game still shows its "connection with the host was interrupted" message and the new host has to create the match again by hand. I had a version that rebuilt the match automatically through the game menus, and an "auto host" option that hands the host role to the most stable player before the match – but it took about a minute, lost the host's rule settings and was not something I wanted to ship. Both will come back properly in a later version, with the switch happening inside the game itself instead of clicking through menus.
Xbox Live mode lobbies don't migrate yet.
I'd be glad to hear how it works for you – especially with players far apart.
Activity
Greevee commentedon Nov 26, 2026
Thanks for the request – part of it is in 0.6.3, the rest comes later in a cleaner form.
What's in 0.6.3 (experimental, on by default): host migration in matches
It can be switched off under Multiplayer › Match & network.
Not in 0.6.3 – coming later: when the host leaves in the lobby (before a match or between two matches), the game still shows its "connection with the host was interrupted" message and the new host has to create the match again by hand. I had a version that rebuilt the match automatically through the game menus, and an "auto host" option that hands the host role to the most stable player before the match – but it took about a minute, lost the host's rule settings and was not something I wanted to ship. Both will come back properly in a later version, with the switch happening inside the game itself instead of clicking through menus.
Xbox Live mode lobbies don't migrate yet.
I'd be glad to hear how it works for you – especially with players far apart.