After I get a successful GetMatch response in the GetMatchResult the port in ServerDetails is different from the one on the server. I get 3000x but the server uses 5000x.
,After I get a successful GetMatch response in the GetMatchResult the port in ServerDetails is different from the one on the server. I get 3000x but the server uses 5000x.
,PlayFab MPS is running via Docker, and the RDP login information in playfab3.png is for developers to connect to the VM. If you successfully log into the VM, please also try "docker ps" to check the running containers (server instances).
A player will never access RDP information of your VM and they can only get connection information from GetMatch() or RequestMultiplayerServer().
What connection method or network framework do you implement in your server? You may refer to MpsSamples/UnityMirror at main PlayFab/MpsSamples (github.com) to implement your server.
This is normal if your server build run on container mode, because on container mode, your server process starts at 7777 but during container creation the 7777 is mapped to 56100(for example) on the VM level. So the client will send packets to 56100 on the VM and these will end up to 7777 on the container. It’s called port mapping. For more information about containers please refer to Container.
I undestand that but the client gets port 30001(for example) from the GetMatchResult which is wrong and cannot connect to the server because the server is mapped to 50001(for example)
Sorry for the late reply. May I know how you find that the actual port your server is mapped to is different from the port you obtain from GetMatchResult? Since in my test, the two port numbers are the same.
On the client side the port from GetMatchResult from PlayfabMultiplayerAPI.GetMatch() is 30001 and when I try to connect to the server using the received ip and port it doesn't work. And I check in the playfab dashboard, in Servers, the port of the server is 50001. If I manually input the port to 50001 the client will start connecting.
May I have your Title ID ? And you can try calling RequestMultiplayerServer API to see if the IP and port are different from what the playfab dashboard shows.
25A7B. I tried with the RequestMultiplayerServer API as well and it is the same
The first is the port i get in unity from GetMatch and the second is from the server on playfab dashboard
13 People are following this question.