Ports defined on build ex. game_port ~ 7777 ~ UDP are mapped to an internet facing port when deployed (ex. 30000).
My question is, is it possible to get that port number inside game server instance (Unity server)?
PlayFabMultiplayerAgentAPI.GetConfigSettings()["game_port"] will return 7777 while clients on Get Match result will get game_port ~ 30000.
Why I need this is. Using Photon Fusion with Playfab game server/ Match Making, to speed server deployment and client connect time want to initialize Photon (with unique name) before server is set to ReadyForPlayer (no match id is assigned yet to server in this stage) which can cut down 3-5secs or maybe even more.
Thus need a unique identifier for each server that is accessible to client through GetMatch result that client gets from MatchMaking. Best case senario would be to have access to ServerID on clients but seems that data are not passed through GetMatch result.
Would appreciate any insight on how to get either public facing port on server or Server ID on client.