Search Unity

Question Attach remote profiler to server

Discussion in 'Game Server Hosting' started by lamorna, Nov 18, 2022.

  1. lamorna

    lamorna

    Joined:
    Oct 2, 2019
    Posts:
    9
    How would I go about attaching the Unity profiler remotely to our server build? More specifically, how do I open the port range the remote tool searches through on a Multiplay server. I'd like to get some performance metrics there. Are there any other gotchas I should be aware of?

    Thanks for your time
     
  2. G_Wojo

    G_Wojo

    Unity Technologies

    Joined:
    Feb 8, 2017
    Posts:
    44
    Hi, I think you choose perfect time to ask this question. We recently done some changes in ports we are using.

    In the past we had:
    • 55000-55496 for player TCP/IP listening ports
    • 54997, 34997 as UDP broadcasting with player informations (*)
    Now if you use newest version of 2020, 2021, 2022, 2023 we simplified things and you should only need:
    • 55000-55016 for player TCP/IP listening ports
    • 54997, 34997 as UDP broadcasting with player informations (*)
    From gotchas when using broadcast you may not see players as we only doing UDP broadcasting on group "225.0.0.222". If this is a case you may be required to use IP address to connect.
    (*) Use to show player informations in editor dropdown and player information in unity debugger plugins (Rider, Visual Studio, Visual Studio Code)
     
    MartinTilo likes this.