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 /
  • API and SDK Questions /
avatar image
Question by Christopher Silvas · Apr 27, 2020 at 03:42 PM · apissdksCustom Game Servers

Curl error 6: Could not resolve host in MockVmAgent

So I am building a game server in Unity that I intend to run with the PlayFab server systems.

I have got my game building to Windows running in the MockVmAgent. But whenever I attempt to run PlayFabServerAPI calls such as "AuthenticateSessionTicket" the request times out and logs an error:

"Curl error 6: Could not resolve host: titleID.playfabapi.com"

The error code is, "/Server/AuthenticateSessionTicket: Cannot resolve destination host"

I assume this is caused by a firewall within the container image not allowing outside url requests...

How can I get around this? Am I doing something wrong?

Comment

People who like this

0 Show 3
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 Christopher Silvas · Apr 25, 2020 at 05:12 PM 0
Share

I should mention that it works perfectly well both in a standalone without the PlayFabAgentAPI aswell as with the PlayFabAgentAPI on the actual PlayFab servers as a build. It seems like it defeats the purpose of having a container if it are inconsistencies like this from container to container...

avatar image Sarah Zhang Christopher Silvas · Apr 28, 2020 at 08:33 AM 0
Share

We will dig into it.

avatar image 01markbryant01 · Aug 12, 2020 at 10:53 PM 0
Share

Any luck with this?, I have the same problem

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Sarah Zhang · May 08, 2020 at 06:31 AM

Have you followed this section verifying containerization, especially "Run Setup.ps1 which sets up the docker networks to add firewall rules"?

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 Christopher Silvas · May 12, 2020 at 11:01 PM 0
Share

Hello, Sarah. Thank you for your response. I tried running Setup.ps1 in admin mode right before starting the container and it did not work. The problem is not the connection between the agent and the app, it is between the app and the playfab servers/api calls. It could be a problem with my firewall, but, again, API calls do work when it is not in a container so I think it is probably something on the container level.

This happens when I attempt to authenticate a player that was able to successfully connect.

Curl error 6: Could not resolve host: 5b888.playfabapi.com

(Filename: Line: 808)

ERROR - /Server/AuthenticateSessionTicket: Cannot resolve destination host

avatar image Sarah Zhang Christopher Silvas · Aug 16, 2021 at 08:31 AM 0
Share

Do you use Unity to develop this server? If so, this question should be relevant to the certificate issue about Unity.

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

    3 People are following this question.

    avatar image avatar image avatar image

    Related Questions

    Does having PlayFab Editor Extension in Unity and enabling server API expose the developer secret key? 1 Answer

    Possible for a server to retrieve its own tags (GameInfo)? 1 Answer

    Multiplayer 2.0 StartGame Procedure? 2 Answers

    Meaning of RegionInfo.Available (vs. it being in GetGameServerRegions) 1 Answer

    How to set the maximum number of players on the server? 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