BTW i have script to do that:
#!/bin/bash
gnet_port="$(grep listen_port ~/.gtk-gnutella/config_gnet | grep -o
[0-9]*)";
upnpc -r "$gnet_port" TCP "$gnet_port" TCP;
upnpc -r "$gnet_port" UDP "$gnet_port" UDP;
gtk-gnutella;
upnpc -d "$gnet_port" TCP "$gnet_port" UDP;
works quite nice for me... so i guess it will not be so hard to
implement something similar directly in gtk-gnutella.
peace
------------ Původní zpráva ------------
Od: Tomáš Mudruňka <har...@email.cz>
Předmět: [gtk-gnutella-devel] UPnP Support
Datum: 11.7.2010 13:48:28
---------------------------------------------
Hello,
i think that it could be very usefull to add universal plug'n'play
support to gtk-gnutella to automatically enable port forwarding on
upnp enabled routers (this can turn many leafs to fully available
peers especialy in cases of users without access to router
configuration or without skills to set forwarding manualy). eg.: i
am lazy to configure it myself everytime as i move frequently across
many networks and getting different IP addresses, but if gtk-
gnutella could do it for me automaticaly, i would appreciate it a
lot...
if you don't want to implement it yourself, we can call miniupnpc
binary from gtk-gnutella with desired parameters (also don't forget
to unregister forwarded port before quiting/aborting gtk-gnutella)
or i guess that gtk-gnutella can reuse majority of miniupnpc code:
http://miniupnp.free.fr/(http://miniupnp.free.fr/)
peace
Harvie
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
gtk-gnutella-devel mailing list
gtk-gnutella-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel