Categorygithub.com/DeNetPRO/turbo-upnp
modulepackage
1.0.1
Repository: https://github.com/denetpro/turbo-upnp.git
Documentation: pkg.go.dev

# README

Turbo-UPnP

Go Reference

Installation

Remember to enable UPnP on your router!

go get -u github.com/DeNetPRO/turbo-upnp

Usage

import upnp "github.com/DeNetPRO/turbo-upnp"

//initializes internet gateway device
device := upnp.InitDevice()

// forward port
description := "test"
port := 9999
device.Forward(port, description)

Image alt

// close port 
device.Close(port)

// get your public ip 
ip := device.PublicIP()

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# Functions

Initialisation device, which is detected by ssdp.

# Structs

Device contains real location your router (ip address)and clientURL.