question

Matheus Vieira do Carmo avatar image
Matheus Vieira do Carmo asked

How to connect to an existing Region Server

Unreal Engine

The way you taught in the documentation for matchmaknig to occur

  1. Create Matchamking Ticket
  2. Get Matchmaking Ticket
  3. Get Match

Whenever this flow occurs, a new region server is created

I would like to know how I can connect with this sessionID from this region server. I want to connect to the existing one and not create a new one

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

·
Made Wang avatar image
Made Wang answered

Since you are starting the server by matchmaking, you should get the ServerDetails via GetMatch and then use the obtained IP and port to connect to the server.

For an already started server, you can call GetMultiplayerServerDetails on the Azure Function Cloud Script. Then the Client can call this Azure Function Cloud Script via Execute Function to get server details.

2 comments
10 |1200

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

Matheus Vieira do Carmo avatar image Matheus Vieira do Carmo commented ·

Could you show me an example with a blueprint image? @Made Wang

0 Likes 0 ·
Made Wang avatar image Made Wang Matheus Vieira do Carmo commented ·

If what you want is how to get server details from the result returned by GetMatch, you can refer to the figure below.

0 Likes 0 ·
serverdetails.png (175.6 KiB)

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.