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 /
  • General Discussion /
avatar image
Question by Benjamin Ikes · Jan 05 at 07:57 PM · unity3dMatchmakingCustom Game Serversdatamultiplayer

Clients wont connect to Playfab server

Hey guys,

So I have the problem that my clients wont connect to the server! They get all the server data like the port, ip from the matchmaking. Also dhe GUI of mirror shows me that they both got the correct data also my playfab server gets activated.

I dont get any error message but they just wont join. I manually have to click on the mirror GUI to connect them as a client and after a few seconds they just get kicked without any error or warning.

I am very confused on why this happens and it probably is a noob mistake and I missed something so I am more then happy for any help and learn from it!

Thank you in advance! :D

Comment

People who like this

0 Show 1
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 Benjamin Ikes · Jan 06 at 06:31 AM 0
Share

If any more info is needed I am happy to share

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Gosen Gao · Jan 06 at 06:58 AM

Since different servers have different connection methods, it does not automatically connect to the server after getting the IP and port information from GetMatchResult. You need to implement your own client code based on your server code to connect to your server. For your scenario, you can call the Mirror's connection method in the callback function of GetMatch.

As for the issue that player being kicked out after connecting, it should be related to the server build. You can follow Locally debugging game servers and integration with PlayFab or Connect directly to debug game servers to debug your game server to determine the issue.

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 Benjamin Ikes · Jan 06 at 02:50 PM 0
Share

Thank you, I already use the GetMatch function but it doesnt seem to be working! But i will def try the debug!

avatar image Gosen Gao Benjamin Ikes · Jan 07 at 05:26 AM 0
Share

To be clear, the API GetMatch is not used to connect the server, it is used to get the match info which contains the server details. Then you can use the server details to create your own function to connect to the server.

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

    9 People are following this question.

    avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

    Related Questions

    How can I use PlayFab to host my game made with MLAPI (unity)? ,How can I use PlayFab to host a multiplayer game built with Unity MLAPI?,Is there any tutorial on how to use PlayFab with MLAPI in Unity? 1 Answer

    How can I get a QueueName from a running multiplayer game server? 1 Answer

    Discoverable session with playfab party 1 Answer

    Playfab possibilities to develop turned-based multiplayer games with 2 Answers

    Playfab multiplayer: question about possibilities 2 Answers

    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