package
0.0.1
Repository: https://github.com/libonomy/libonomy-p2p.git
Documentation: pkg.go.dev

# Packages

Package upnp provides a simple and opinionated interface to UPnP-enabled routers, allowing users to forward ports and discover their external IP address.

# Functions

AcquirePortFromGateway sets up UDP and TCP forwarding rules for the given port on the given gateway.
DiscoverUPNPGateway returns a UPNPGateway if one is found on the network.
GetExternalIP returns a string formatted external IP address from a UPnP-enabled NAT on the network, if such device is discovered.

# Interfaces

UPNPGateway is the interface of a UPnP gateway.