Created
November 9, 2018 17:54
-
-
Save junquera/218aebf483ed3536d3914c1d2b7479d5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import miniupnpc | |
upnp = miniupnpc.UPnP() | |
upnp.discover() | |
upnp.selectigd() | |
port = 80 | |
upnp.addportmapping(port, 'TCP', upnp.lanaddr, port, 'testing', '') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment