question

martinliu1993 avatar image
martinliu1993 asked

Clarification on how clients should connect to server

Hi, I just need a little bit of clarification on how exactly a client is supposed to join a custom game server after the client calls "MatchMake", upto Server calling "RedeemMatchmakerTicket"

So from what I understand, after the client calls "MatchMake" and succeeds, the client would have the IP and Port. Now, the client would connect to the server (In UE4 would be using ClientTravel) using that IP and Port.

Once the clients successfully connects to the server, the client would immediately RPC its Ticket to the server. The server would then call "RedeemMatchmakerTicket". If the redemption succeeds, the game continues. If it fails, the Server would disconnect the client.

Is that the correct flow?

capture.png (16.7 KiB)
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

Yes, that's correct - the Matchmake call returns the IP and Port, the client connects on that IP and Port and passes the server the matchmaker ticket, and the server uses that ticket to both validate that the player is allowed to join the server and to notify us that the slot has been filled by that player. If the matchmaker ticket fails that check, the server should disconnect/ignore that player.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.