I am new to working with playfab and I uploaded my first server.exe (created with unity) and it works.
Now I noticed that the first player-client can search for an available server using RequestMultiplayerServer.
But this will already return NoHostsAvailableInRegion for the next player that tries to connect.
What I read from this forum suggest that I need to create a backfill ticket so the server will wait for more players. Is that the right way to do it?
I am asking because for me this workflow seems strange.
Because every game will have more than one player so I wonder why RequestMultiplayerServer works the way it does.
Maybe I should approach the whole "how clients connect to a server" concept differently?
Answer by b · Apr 08 at 01:52 AM
Thanks for your help.
I build my own solution which does the following
I wrote a guide for other people who might search for a solution for unity 3D.
I am glad that you have built your own solution. And thanks for your effort in writing a guide.
Answer by Rick Chen · Mar 29 at 08:43 AM
The NoHostsAvailableInRegion error usually indicates that there is no available server for the region you are requesting. The RequestMultiplayerServer API is used to request a multiplayer server session, not joining other player’s server. How many servers have you assigned to the build?
If you would like to connect second player to the server requested by the first player, you could implement a way to share the server information (IP address, port number etc.) to the second player. Or use the backfill ticket as you mentioned, the Server backfill tickets allow a game server to search for additional players which will fit into the game currently being played, please refer to: Using server backfill tickets for more detail.