Change Photon UDP port

Hi, i need to change the UDP port from 5055 to something like 49991, I don't know, i made some test but nothing seems to work. Do you guys know what i'm doing wrong?

Comments

  • Hi @AndAR,

    Thank you for choosing Photon!

    You mean you are changing the ports configuration for self-hosted Photon Server or something else?

    You can't change ports for Photon Cloud.
    We offer alternative ports (for another reason) that you could use.
    We also offer custom ports for Enterprise Cloud customers only.
  • AndARAndAR
    edited January 27
    I've solved.

    If anyone needs it, you need to change your GamingUdpPort in Photon.LoadBalancing.dll.config file in both folder in Deploy/LoadAssets/...
    Then you need to change your UDP port in PhotonServer.config

    Hope this can be helpful to someone in future
  • Hi @AndAR,

    You need to change the PhotonServer.config next to PhotonControl.exe; restart or stop and start server again.
    And on the client make sure to use the correct port when connecting.
  • If anyone needs it, you need to change your GamingUdpPort in Photon.LoadBalancing.dll.config file in both folder in Deploy/LoadAssets/...

    So all this stuff is useless?

    Thank u for your help


  • Hi @AndAR,

    Not sure what you are referring to.
    What did you try?

    There are two kinds of servers: master and game.
    Master server port needs to be specified in the client when connecting initially.

    The game server port is returned by the master server with the game server address.
    The game server port also needs to be configured of course, this can be done via PhotonControl directly or via config file.
Sign In or Register to comment.