Create session (blueprint) PlayerController

I want to have a dedicated server and create sessions (rooms) on it by a remote client request. So not to have my clients host their own listen servers.

Am I understand correctly? :

  1. Create session function creates a room with a custom map?
  2. I can have multiple sessions (rooms) on a server and each can handle their own connections on their own map instance?

If it’s right, then how can I create a session on an authoritative server? CreateSession plueprint function has in input parameter PlayerController… But the owner of a room has to be server not a player…

Sessions use the OnlineSubsystem.

The OnlineSubsystem is your connection to the “Dedicated master server” (like steam for example). From there, users already connected to the server are able to create rooms (create session) and have other people be able to find them (find session) and join them (join session).

If you wanted your own server to be the one the OnlineSubsystem communicates with, then you are going to have to get that running first and have the OnlineSubsystem use it.

Hope it helps :slight_smile:

OnlineSubsystemNull does it allow creation of custom master server