nat_traversal

package
v0.1.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AcquirePortFromGateway

func AcquirePortFromGateway(gateway UpnpGateway, port uint16) error

func GetExternalIP

func GetExternalIP() (string, error)

Types

type UpnpGateway

type UpnpGateway interface {
	Forward(port uint16, desc string) error
	Clear(port uint16) error
}

func DiscoverUPnPGateway

func DiscoverUPnPGateway() (UpnpGateway, error)

Directories

Path Synopsis
This package provides a simple and opinionated interface to UPnP-enabled routers, allowing users to forward ports and discover their external IP address.
This package provides a simple and opinionated interface to UPnP-enabled routers, allowing users to forward ports and discover their external IP address.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL