Forking code from http://sourceforge.net/p/upnp-portmapper/
trunk r126, last update 2013-08-04