Want to make a lan game, with friends. but when the host creator leaves the game, the game either crashes or closes. i don’t want to this system. I just want host migration, peer to peer handover. I couldn’t find anything in youtube. and the post or documents so complicated. What do you recommend. I’m not a very good developer.

    Burka i havent looked further than what i posted above. But i dont think there is any solution out there atm. I havent gone that far into game development to tackle this problem myself, im sure i wont be able to do so, but im interested, so keep posting your findings here.

    Does that mean right now host migration can not be dealt with in any way?

      trizZzle im not sure, but from my experience, when the host disconnects then all peers get disconnected, so in that sense, no, there is no migration. You need some sort of middleware that could handle the disconnection thing..

      ive done some thinking, and no, there is no such host migration using high lever multiplayer API. You could write it out using low level, but then it would be janky.

      The best user experience would be if the loby that you connect to and game is hosted on is a dedicated server. but then you would not need to migrate hosts. Its either works or it does not.

      Maybe you could designate the "king" player, that would hold the game state data, then if the host dies, then the "king" would choose the next avaliable server, and start new game with the migrated game data.

      But then you would need to have the players that went down with theprevious server be able to communicate with the king player to get the new server IP to join to.

      Its a mess..

      At this point im just speculating how it could be done. Im not a professional and im not under the supervision of professionals.

      I asked Gemini about a solution:

      To prevent this issue, many online games:

      Have dedicated servers: These servers are maintained by the game developers and continue to run even if players leave.

      Implement peer-to-peer hosting with backup hosts: In this system, if the main host leaves, another player can take over hosting duties, ensuring the game continues.

      Use cloud-based hosting: This method relies on powerful cloud servers to handle the game's logic, making it less susceptible to disruptions from individual players leaving.

        DaveTheCoder

        DaveTheCoder Implement peer-to-peer hosting with backup hosts: In this system, if the main host leaves, another player can take over hosting duties, ensuring the game continues.

        That what I thought about, but I haven't done any multiplayer so far. Can this be done with what Godot currently offers? I mean it should be able to code it with the current enet api?