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?
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...
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"?
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
Do you use Unity to develop this server? If so, this question should be relevant to the certificate issue about Unity.