Hello all,
I'm trying to setup my Unity FishNetwork project to work with PlayFab for the server and backend. I've done the steps marked here: https://learn.microsoft.com/en-us/gaming/playfab/features/multiplayer/servers/locally-debugging-game-servers-and-integration-with-playfab
In the non-container version, everything works perfectly. I see the heartbeat, my client can join the server and walk around and do things. Perfectly fine.
However, the container version results in timeout. Launching it from powershell, I can see the server go from stand by to active, and I can see the heartbeat just fine. In my unity game, when I try to launch the local client, it simply times out. Even when testing locally trying to reach the server on a browser (via http://127.0.0.1:56100/Hello), it times out (any other port results in connection refused.
I'm out of ideas. Any clue on how to fix this? This is what my MultiplayerSettings looks like:
{
"RunContainer":true,
"AssetDetails": [
{
"MountPath": "C:\\Assets",
"LocalFilePath": "C:\\Assets\\LoungeServer.zip"
}
],
"PortMappingsList": [
[
{
"GamePort": {
"Number": 30000,
"Name": "game_port",
"Protocol": "TCP"
},
"NodePort": 56100
}
]
],
"GameCertificateDetails": [],
"SessionConfig": {
"SessionCookie": null,
"SessionId": "456836cb-4d91-4697-a437-d5367e81f152",
"InitialPlayers": [
"Player1",
"Player2"
]
},
"DeploymentMetadata": {
"Environment": "LOCAL",
"FeaturesEnabled": "List,Of,Features,Enabled"
},
"TitleId": "7CC82",
"Region": "EastUs",
"BuildId": "55364397-e2d1-41eb-a04e-e2cdab18613a",
"RunMode": 1,
"ContainerStartParameters": {
"StartGameCommand": "C:\\Assets\\MetaBoyLoungeHeadless_PlayFab.bat",
"resourcelimits": {
"cpus": 1,
"memorygib": 16
},
"imagedetails": {
"registry": "mcr.microsoft.com",
"imagename": "playfab/multiplayer",
"imagetag": "wsc-10.0.17763.973.1",
"username": "",
"password": ""
}
},
"OutputFolder": "C:\\Assets\\WindowsContainerLogOutput",
"NumHeartBeatsForActivateResponse": 10,
"NumHeartBeatsForTerminateResponse": 172800,
"AgentListeningPort": 56001
}
In my app, I'm attempting to connect to port 56100, as per NodePort. And just times out.