miniupnp.tuxfamily.org Forum Index miniupnp.tuxfamily.org
The forum about miniupnp and libnatpmp
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

What causes port leases to expire?
Goto page Previous  1, 2
 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Bugs
View previous topic :: View next topic  
Author Message
NickH



Joined: 10 Feb 2018
Posts: 26

PostPosted: Wed Aug 18, 2021 3:32 pm    Post subject: Reply with quote

So, if the PS4 gets an IP address by DHCP and gets its reservations and then is not used for a while, it may get another IP address next time it is switched on. Then you end up with two uPnP port forwards to different LAN IP's (if using iptables) and this cannot work.

I had the same with a Sia server where I moved the app to a different machine (and therefore IP address). At least if there were a sensible lease time, the lease would expire and allow the other port forward to work.

It sounds like this is not a brilliant aspect of the uPnP spec.
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Wed Aug 18, 2021 3:34 pm    Post subject: Reply with quote

NickH wrote:
So, if the PS4 gets an IP address by DHCP and gets its reservations and then is not used for a while, it may get another IP address next time it is switched on. Then you end up with two uPnP port forwards to different LAN IP's (if using iptables) and this cannot work.

I had the same with a Sia server where I moved the app to a different machine (and therefore IP address). At least if there were a sensible lease time, the lease would expire and allow the other port forward to work.

It sounds like this is not a brilliant aspect of the uPnP spec.

That's why IGDv2 does not allow unlimited lease time.

But anyway, it is also a good thing to configure the DHCP server to always allocate the same IP to the PS4
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Bugs All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP
© 2007 Thomas Bernard, author of MiniUPNP.