Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • Bugs /
avatar image
Question by Curtis Pelissier · Feb 19, 2021 at 08:54 PM · Matchmakingmultiplayer

Randomly, players can't connect to the server

Hello,

We are working on a versus game which uses the Matchmaking feature with the "Enable server allocation" feature.
The matchmaking works perfectly, it matches my two players and send them the informations of the server (ip address, port, regions...) but randomly, my two players can't connect to the server.

So, I tried to retrieve the server logs to understand, but there is no active server and I can't find which server was deployed. I only get the match id with server ip/port, and that's all.

And, when I say "randomly", that's why my players can play 3 times in a row without problems, and suddenly the next time they can't connect to the server.

We are using Unity 2020.2.2f1 with Mirror 30.4 and my game id is 8E952.

Any idea of which problem it could be ?

Comment

People who like this

0 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image

Answer by Brandon Phillips · Feb 19, 2021 at 11:59 PM

@Curtis Pelissier How many servers do you have running in Standby? Is it possible that you aren't shutting down servers when your games complete and those 3 games in a row are still Active so there aren't any other servers to allocate?

Comment

People who like this

0 Show 2 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Curtis Pelissier · Feb 22, 2021 at 07:58 AM 0
Share

I'm doing exactly the same than the Mirror sample : when the numbers of players falls to 0, I call the PlayFabMultiplayerAgentAPI.UpdateConnectedPlayers() to update and an Application.Quit() to close the server build.

That's true, there still is the game session opened on my gamemanager playfab with 0 players but when I read the logs, the server is closing at the right timing (like ~5 seconds after my players left).

avatar image Sarah Zhang Curtis Pelissier · Feb 26, 2021 at 02:24 AM 0
Share

When you say "Player can't connect to the server", do you mean they get the IP and Port successfully, but can't connect to it? Or you do mean they can't get the server detials like IP and Port?

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    2 People are following this question.

    avatar image avatar image

    Related Questions

    Call to ReadyForPlayers function is blocking forever 2 Answers

    Multiplayer server not showing in matchmaking 1 Answer

    Backfill tickets not being properly cancelled 1 Answer

    CreateMatchmakingTicket returning 500 errors randomly 1 Answer

    Server does not transition to Terminating after successful shutdown request 1 Answer

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges