UE4 4.13.1 - Dedicated servers / connection and showing on master list.

Just going to start a thread as I sent an email to eXi, but others might have input.

Hey exi,

Been going over all the forum posts etc and a little confused what’s needed still to get a dedicated server build to show up and connect with clients over steam.

Do you have a recent resource of what needs to be updated or changed from the current release to get things working?

I had the initial client host working over steam ok and just started dabbling with getting a dedicated server to run.

Note I cannot get the connection to establish or show up on steam when the dedicated server build is running under app is 480.

And info would be greatly appreciated as I get closer to a public alpha for a multiplayer only game.

So far I found that you have to register a server by hosting a session. You can do so by overriding AGameSession::RegisterServer() function.

Example:


void AMyGameSession::RegisterServer() {
	Super::RegisterServer();

	if (!IsRunningDedicatedServer()) {
		return;
	}

	IOnlineSessionPtr SessionInt = Online::GetSessionInterface();

	FOnlineSessionSettings Settings;
	Settings.NumPublicConnections = 3;
	Settings.bShouldAdvertise = true;
	Settings.bAllowJoinInProgress = false;
	Settings.bIsLANMatch = true;
	Settings.bUsesPresence = true;
	Settings.bAllowJoinViaPresence = true;
	Settings.bIsDedicated = true;

	SessionInt->CreateSession(0, GameSessionName, Settings);
}

P.s. Correct me if I’m wrong