I want to through the game main menu to let the player select running as dedicated server or client, I found when initialize the gameinstance, the run mode is set ,
For a Dedicated Server, you must compile a separated version of the game.
Also a Player can’t be a Dedicated Server. The idea of that kind of Server is to NOT have a Player.
If you want a Player to be the Server, you need a Listen Host.