Get router name

Hi everybody, and sorry for the n00b question.

I'm working on a project in which I'm using PUN 2 and Photon Server 4 on a local machine.
My customer asked me if there is the possibility to know the name, or at least a reference, of the router the Unity instance is connected to.

They need this information in order to monitor how much instances are connected to a single router, and so, how many different routers are involved in the network session (for example: a room with 6 players divided in 3 PCs on router 1, 2 PCs on router 2, 1 PC on router 3).

I tried to search something about that in the forum, but maybe I used the wrong keywords.

Thanks a lot for your time and your help!



  • Hi @CabbageWarrior,

    Thank you for choosing Photon!

    I don't think this is possible out-of-the-box.
    What you need to do is:

    From the client: get the gateway/router address/name and send it to the server (via a custom event or custom actor property or else).
  • Hi @JohnTube, thank you very much for your reply!
    I will absolutely do as you advised me. At least, now I'm sure that there isn't a better way to do this.

    Thanks for the help! <3
Sign In or Register to comment.