upnp

package
v0.0.0-...-1a6bc1e Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2017 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func AddPortMapping

func AddPortMapping(internalIp string, internalPort int) (int, error)

func ClearPortMapping

func ClearPortMapping(externalPortString string) error

func DiscoverDevices

func DiscoverDevices() error

Discovers UPnP devices on the network.

func GetExternalIp

func GetExternalIp() (string, error)

GetExternalIp gets the external IP of the port mapped device.

func GetIP

func GetIP() (string, error)

func GetInternalIp

func GetInternalIp() (string, error)

GetInternalIp gets the internal Ip address

Types

This section is empty.

Jump to

Keyboard shortcuts

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