Upnp Port still alive after disconnection

Options
hi

I noticed that photon the ports used by pun are not 100% disposed after disconnection.
This causes the ports to stack in the router which may lead to the router disconnection from the net.

Is this a known behaviour ?
If so do I have to erases these ports myself or does photon takes care of it eventually?

If photon can't take care of it, is there a way to tell pun not to use upnp ?

Thanks

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    Hi @ludo,

    Thank you for choosing Photon!

    I think there is a misunderstanding.
    Unless I'm mistaken, Photon does not use UPNP.
    What ports are you referring to?

    PUN disconnects automatically and the port should be free then.

    Are you connecting to Photon Cloud or your self-hosted Photon Server?
    What are the Unity and PUN versions you are using?
    What are your target platform and transport protocol used?
  • ludo
    Options
    Hi @JohnTube

    Thanks for the quick response and
    sorry for the poor description
    I'll try to explain in details

    ・What ports are you referring to?
    i'm referring to Upnp ports I believe photon uses when it can

    ・Are you connecting to Photon Cloud or your self-hosted Photon Server?
    I'm using Photon Cloud

    ・What are the Unity and PUN versions you are using?
    Unity version: 2017.2.1f1
    Pun version: 1.9 I think (I forgot where to check)

    ・What are your target platform and transport protocol used?
    target : windows 10
    protocol: udp


    Now It's quite a big project so I may be mistaken
    but I can see upnp port being added in the router when I do the matchmaking process so I assumed photon used it

    likely when the match is done I disconnect from photon and the port is free
    but if i reboot the computer before the match is done the upnp port stays alive even after rematching (where another port is added )
    the port doesnt stay alive everytime but when I checked my router there was 5 of them running around...

    I'll run more test with a more basic project to see if the outcome is the same
  • Tobias
    Options
    PUN does not control UPNP directly, so it may be lingering.
    Should be just fine.