/portmap

Go library for mapping ports using NAT-PMP or UPNP.

Primary LanguageGoMIT LicenseMIT

Map TCP and UDP ports using NAT-PMP or UPNP.  Unlike some other libraries,
guarantee that we don't override other clients' ports, and that the
mappings will expire even if the client crashes.

See portmap-example for an example.