How to Install and Uninstall golang-github-nebulouslabs-go-upnp-dev Package on Ubuntu 21.10 (Impish Indri)

Last updated: May 17,2024

1. Install "golang-github-nebulouslabs-go-upnp-dev" package

This guide let you learn how to install golang-github-nebulouslabs-go-upnp-dev on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install golang-github-nebulouslabs-go-upnp-dev

2. Uninstall "golang-github-nebulouslabs-go-upnp-dev" package

Please follow the guidance below to uninstall golang-github-nebulouslabs-go-upnp-dev on Ubuntu 21.10 (Impish Indri):

$ sudo apt remove golang-github-nebulouslabs-go-upnp-dev $ sudo apt autoclean && sudo apt autoremove

3. Information about the golang-github-nebulouslabs-go-upnp-dev package on Ubuntu 21.10 (Impish Indri)

Package: golang-github-nebulouslabs-go-upnp-dev
Architecture: all
Version: 0.0~git20171003.0.1be4557-1.1
Priority: extra
Section: universe/devel
Source: golang-github-nebulouslabs-go-upnp
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Go Packaging Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 191
Depends: golang-go, golang-golang-x-net-dev
Filename: pool/universe/g/golang-github-nebulouslabs-go-upnp/golang-github-nebulouslabs-go-upnp-dev_0.0~git20171003.0.1be4557-1.1_all.deb
Size: 25528
MD5sum: 21b84ebb39574f207eb97685fbd2b9e9
SHA1: f68c898f6c3b8dee5b59c950836de3e7a5a951a6
SHA256: f713cdafed5cf4eece2116646693df935a7aa5805f3f25c6672624671dad87d7
SHA512: 5cf8ff68d36ca39716fcb8605293a3ae12f0c0ca920be50836e48e856309520e84a1b19306a0badc82c4756318cc7115fc2ba9820566a9dfbbef249b7285e585
Homepage: https://github.com/nebulouslabs/go-upnp
Description-en: Opinionated interface to Internet Gateway Devices
The upnp package upnp provides a simple and opinionated interface to
UPnP-enabled routers, allowing users to forward ports and discover their
external IP address.
.
Specific quirks:
.
- When attempting to discover UPnP-enabled routers on the network, only
the first such router is returned. If you have multiple routers, this may
cause some trouble. But why would you do that?
- Forwarded ports are always symmetric, e.g. the router's port 9980 will
be mapped to the client's port 9980. This will be unacceptable for some
purposes, but too bad. Symmetric mappings are the desired behavior 99%
of the time, and they save a function argument.
- TCP and UDP protocols are forwarded together.
- Ports are forwarded permanently. Some other implementations lease a port
mapping for a set duration, and then renew it periodically. This is nice,
because it means mappings won't stick around after they've served their
purpose. Unfortunately, some routers only support permanent mappings,
so this package has chosen to support the lowest common denominator. To
un-forward a port, you must use the Clear function (or do it manually).
.
Once you've discovered your router, you can retrieve its address by
calling its Location method. This address can be supplied to Load
to connect to the router directly, which is much faster than calling
Discover.
.
See the godoc (http://godoc.org/github.com/NebulousLabs/upnp) for full
documentation.
Description-md5: 93f0a69823119a8e910a4e5169808be1