In my multiplayer game I’ve been running into to server problems. I also figure that separating the game servers would be beneficial to the project. Here is my theory:
- Connect to account server (Server that holds player data and accounts)
- After player logs in, pass that account file along to the lobby server (Server where players go when playing, but not in a match)
- The lobby server will add that account to the list of online players for random matches and such
- Then when a match is ready to begin. The lobby server starts up a new game server instance on a random TCP and UDP port to play the match on.
That would mean if the game crashes only that game crashes because technically the game server is just one game.
So how would that handle?
I’ve did some reading on ports, are they all TCP & UDP or does each port have a special protocol they like to handle?
What do you guys think?