K
K
ks_ks2012-02-24 20:44:42
Universal Plug and Play
ks_ks, 2012-02-24 20:44:42

How to use UPnP in Python?

There is a certain port that you want to open to the outside. By default, all ports on the computer are open, but outside they are blocked by 1 or 2 routers (with UPnP support - otherwise how would Skype or torrent work?).

Accordingly, it is not clear what needs to be written in the code in order not to forward ports on the router, and the port to which a connection is expected from the outside was opened (forwarded) by itself.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DmZ, 2012-02-25
@DmZ

For example here (miranda-upnp) see how it works. There is a readme.html in downloads/ which shows how to create a portmapping.
And then you can use this library (pyupnp) to implement portmapping in your program.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question