upnp

package
v0.0.0-...-dde4a86 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2022 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPortMapping

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

AddPortMapping maps to a port

func ClearPortMapping

func ClearPortMapping(externalPortString string) error

ClearPortMapping removes a UPnP port

func DiscoverDevices

func DiscoverDevices() error

DiscoverDevices with UPnP 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)

GetIP gets an IP address that can be used

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