Library for NAT port mapping using the UPnP Internet Gateway Device protocol.
NAT port mapping protocol library
$ libnatpmp is a C library - use it in your application code or via language bindings$ include libnatpmp in your C/C++ project and call natpmp_init() to discover gateway$ link against libnatpmp and use sendnewportmappingrequest() to request port mappings$ call sendnewportmappingrequest() with lifetime 0 to remove port mapping rules$ use natpmp_sendpublicaddressrequest() to query gateway for public facing IP