question

brendan avatar image
brendan asked

Can't matchmake to server

Question from a developer:

Players can't connect to our dedicated server and matchmake isn't working.

When we look in the server tab, the number of games running on the server host says "-1".

Can you please help us solving this problem?

Custom Game Servers
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

Well, those appear to be two separate issues:

First, it's important to clarify the difference between PlayFab hosted servers and externally hosted servers:

https://api.playfab.com/docs/tutorials/landing-tournaments/custom-game-servers

https://api.playfab.com/docs/tutorials/external-game-servers

With server hosting in PlayFab, you activate a game build in one or more regions. We then manage spin-up/spin-down of additional server hosts as needed, and we start instances of the game build on running server hosts as well.

With external server hosting, you manage your own servers and notify our service of their availability via RegisterGame, DeregisterGame, and RefreshGameServerInstanceHeartbeat.

But key point - those three API calls are only for use with externally hosted servers - you should not be calling them if we are your server hosting service.

I've opened a bug to add a logic check which returns an error to those calls if it comes from a server that's running in our service, but for now, please remove those calls from your server build.

Now, as to why players cannot matchmake or connect, that's not clear. As far as I can see, the server is running and (at the moment) there aren't any sessions running. If you're still seeing issues, can you clarify what the response is to a call to Matchmake?

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.