Category : upnp

I am trying to open a server socket on a specific port forwarded by the library miniupnpc. The problem is that I can’t reach my server from other external devices in any way. Here’s the server.py: from miniupnpc import UPnP import socket upnp = UPnP() def forward_port(port_no): upnp.discoverdelay = 10 upnp.discover() upnp.selectigd() upnp.addportmapping(port_no, ‘TCP’, upnp.lanaddr, ..

Read more