Cannot create/connect server with c++ code.

It’s not as simple as just restarting with the ?listen option

You have to setup some things in via the Game Mode and a GameSession

Check out how shooter game does it!

In particular check out the GameSession class :slight_smile:

's the most important function:


bool AVictoryGameSession::HostSession(int32 ControllerId, FName SessionName, const FString & GameType, bool bIsLAN, bool bIsPresence, int32 MaxNumPlayers)
{
  //...

:slight_smile: