How to Install and Uninstall golang-github-nebulouslabs-go-upnp-dev Package on Ubuntu 20.10 (Groovy Gorilla)

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 20.10 (Groovy Gorilla)

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

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

This guide let you learn how to uninstall golang-github-nebulouslabs-go-upnp-dev on Ubuntu 20.10 (Groovy Gorilla):

$ 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 20.10 (Groovy Gorilla)

Package: golang-github-nebulouslabs-go-upnp-dev
Architecture: all
Version: 0.0~git20171003.0.1be4557-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_all.deb
Size: 25392
MD5sum: 6c953e4486a99e63b3fc886c373da888
SHA1: 6418dfc06ec9dc3419e7ce48cd59d214da9d0741
SHA256: b5283105c1213557592917c905aca733cd69e9c911ba593dcef8358966b97823
SHA512: 462def9c3e22956d0a14958435a07fa65a4d477d5e730cf0e7c8f3e4ce6104d404fb1da1c06370909ba324e85fb055db3e2cffd11be94470db9dcb78e19eeb6a
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