adolfintel/WaifUPnP

Question on port refreshing

jredfox opened this issue · 2 comments

Some libraries like https://github.com/offbynull/portmapper have/require the port to be refreshed? What is this does your library need this or is this something that they came up with to close the port automatically if it's not opened?

The router closes a port if there is no activity for a while. This is why yesterday I suggested you to have a thread refresh every few minutes.

right but, by "refresh" I meant a refresh method for the gatewayfinder to find all new gateways again since upnp was false and it needed a "refresh" so it would regrab them.

As for port refreshing I shouldn't have to worry about that since minecraft does have activity on the box with server sockets. Thanks for explaining it to me