[p2p-hackers] Re: Getting started with UPnP on Win32

David Barrett dbarrett at quinthar.com
Fri Jul 8 23:42:10 UTC 2005


On Fri, 8 Jul 2005 3:08 pm, coderman wrote:
> you can add additional forwards as mentioned with
> StaticPortMappingCollection::Add( ) but there is a low limit (5??) and
> whoever gets the mapping first wins.  thus if you try to do this from
> another application you will see the assignment already in place when
> get_StaticPortMappingCollection( ) is called, and you would have to
> explicitly remove it before adding it to a different internal
> endpoint.

Thanks for the link.  As for a 5-port limit, that's pretty tight in a 
multi-PC LAN.  Any idea if 5 is on the low side, or if they're all this 
restrictive?

As for timeouts, I'm concerned that there's no apparent "cleanup" 
process to mappings.  Say I configure a static mapping and the process 
is killed -- will that mapping stay forever?

Naturally my app can be a bastard and just blow away any mappings that 
get in its way, but that's not the most elegant solution.

-david



More information about the P2p-hackers mailing list