openlierox icon indicating copy to clipboard operation
openlierox copied to clipboard

[Feature] UPnP support would be nice

Open albertz opened this issue 13 years ago • 4 comments

Converted from SourceForge issue 2875171, submitted by albertzeyer

UPnP support could be used to request port forwarding automatically on the router. Esp. if you often switch the network (e.g. from LAN to WLAN) or you are often at other places or you are just too lazy, this could be usefull.

albertz avatar May 13 '11 20:05 albertz

Submitted by albertzeyer

Here is a nice and easy implementation:

http://www.google.com/codesearch/p?hl=en&sa=N&cd=7&ct=rc#ZaA4WgINfVE/GNUnet-0.7.1b/src/transports/upnp/upnp.c&q=upnp

albertz avatar May 13 '11 20:05 albertz

Submitted by albertzeyer

This implementation was taken from Gaim. In Pidgin is a more recent version.

albertz avatar May 13 '11 20:05 albertz

Submitted by pelya

Well, it requires curl library, and we do not use it yet (BTW any network I've seen did not contain any UPnP devices or routers, so I doubt they are widespread)

Another question arises then: should we deprecate our HTTP class and use libcurl instead? News page is accessible with curl or wget or web browser, but our built-in HTTP fails.

albertz avatar May 13 '11 20:05 albertz

Submitted by albertzeyer

I didn't said that we should use the code as-is. But porting should not really be that hard, or why do you think that we really need curl here?

And I have not seen any Wireless router knowadays how does not support UPnP and who has not enabled it by default.

For HTTP class: Let's fix it for now, should probably be trivial. (Whereby a lot of things have to be redesigned there later on, see my comments in that file.)

albertz avatar May 13 '11 20:05 albertz