Online Subsystem transfer a user to different server

Hey Everyone.

I’ve been stuck on this for a few weeks now, and I feel like I’ve exhausted all of the options I can think of. I’d appreciate any guidance.

I have a dedicated server and client using the online subsystem. I’m able to search for sessions, find my server, and connect using my client. All of this is working great.

I want to be able to send my player over to a different dedicated server after they have connected. Say for example, the user connects to a server, then clicks on a portal object. I want this to transfer the player over to a different dedicated server.

The code is c++, and based on shooter game. All of my session related functionality comes from here.

Is anyone doing anything like this? Can I get a little high level insight on how to approach it?

Edit > I should add that I have the portal object and the interaction part sorted out… The missing piece is how to deal with the session search server-side, and how to initiate the player transfer.

It is surprisingly simple:

ClientTravel(URL, TRAVEL_Relative, false, FGuid());

Where URL is the IP with port of the server to travel to. Something like 192.168.1.81:7778 [My Local IP]:[The port I started the map on]

Just call that from your Player Controller. I use this in my large world MMO system to transfer players between servers to create a large world with connected maps where one map runs per port (7778, 7779, etc).