We are currently using PlayFab Multiplayer Servers 2.0 (Thunderhead). When I call PlayFabMultiplayerAPI.RequestMultiplayerServer, the server is created in Thunderhead correctly. I then get this response back:
{ "ConnectedPlayers": [], "FQDN": "dnsa2c7d311-3784-44fa-b27e-1555bde53321-azurebatch-cloudservice.eastus.cloudapp.azure.com", "IPV4Address": "40.117.197.88", "LastStateTransitionTime": "2019-02-10T01:50:09.409Z", "Ports": [ { "Name": "game_port", "Num": 30100, "Protocol": 0 } ], "Region": 5, "ServerId": "b536a3a6974802411da47c0a09130e615f59e12f202cac2c219a5c9b8e4d7510", "SessionId": "c03b9f6a-a392-4e72-82c5-655ed6be4395", "State": "Active", "VmId": "xcloudeus4u4yz1807lox:EastUs:fb121f90-a39d-45df-b79c-676a1d3d6694:tvmps_99ba0117da8067c2ec93ab4dbb060a23db82f300d17643d1180e4116b37fb873_d", "Request": { "BuildId": "710538d8-8fbd-4964-9bca-8ae02bde771b", "InitialPlayers": null, "PreferredRegions": [ 5 ], "SessionCookie": null, "SessionId": "c03b9f6a-a392-4e72-82c5-655ed6be4395" }, "CustomData": null }
The problem is, port 30100 is closed when I try to connect to it. At first I thought it was a firewall issue on my end so I turned my firewall off to test. That didn't work. I then used Port Forwarding Tester to check if the port was open and it came back closed. I also checked port 50000 (remote desktop connection / RDP) and it came back as open, verifying that the tool does work and the ip address is correct.
The only thing I can think of is the port might close if a client doesn't connect to it in a set amount of time. We have a test environment where we test our PlayFab API calls and another environment for our game. I'm thinking that its possible the port closes while we switch to our game environment and attempt to connect with the ip address and port (because we take too much time switching).
Edit: We tested connecting as soon as we get the response and it still didn't work. We also used Port Forwarding Tester as soon as we got the response and it still came back as closed. It appears that the port never actually opens and / or nothing is listening to it.
Edit 2: We tested this by locally debugging the docker container as described in the tutorial. It also appears to have the same issue. The NodePort never gets opened and nothing is listening to it. I also turned the firewall off when testing this and it didn't seem to fix anything. We tested with both our custom game server and the game server from gsdkSamples GitHub repo. Still nothing listens on the NodePort.
Any help would be greatly appreciated as we have been trying different things for the past 2 days and have been unable to connect. Thanks.