![]() Registered Member ![]()
|
Hi,
I've just come across ktorrent and am trying to get it functional before I make the full switch.. Just one problem.. I can't seem to get the UPNP plugin working... I've enabled it and it then searches for the my router and all I get back is "invalid URL" Log is:
only files in the dir are:
Searched the boards - and some mentions of similar problems - but no mention of solutions.. I'm using a DLink DSL-G604T wireless ADSL router if that helps.. Would appreciate any thoughts, or help in getting this working.. TIA, RikD |
![]() Registered Member ![]()
|
Maybe stupid question, but are you sure UPnP is enabled in your router and that no firewall is obstructing the passthrough?
Speaking for myself: UPnP does work on my zyxel 2602, but sometimes i do get firewalled on some torrents. For this reason and because i know UPnP was dangerous under windows(which may be a very unvalid reason when using linux), i am using NAT instead. PS.The firmware of my modem is modded by my ISP demon.nl and is unstable, so don't take my information for granted. |
![]() Registered Member ![]()
|
UPnP is enabled on the router - Azureus and others have no problem accessing it.
Again - since Azureus has no issues with firewall blocking it, am assumming that ktorrent shouldn't have a problem either. I dont' want to rely on port forwarding because a) I upgrade FW reguarly on the box, and having to set it up all the time is a pain. b) I don't always run torrent clients from the same PC - so each PC needs to be able to punch a hole through to the router if possible. RikD. |
![]() Moderator ![]()
|
|
![]() Registered Member ![]()
|
|
![]() Registered Member ![]()
|
|
![]() Registered Member ![]()
|
I've got the same problem. UPnP does not work. With Azureus it works fine but I want to get rid of that java monster.
My log file:
My upnp_failure file:
The routers file is empty. Ktorrent is v1.2. __ Rud |
![]() Moderator ![]()
|
|
![]() Moderator ![]()
|
Well the XML seems to parse fine, can you try it with the latest SVN code ? That way we can see if this is not a bug which is allready fixed. |
![]() Registered Member ![]()
|
ok,
I downloaded latest SVN code, modified UPnPMCastSocket to print a little more info than it currently does.. First the response from my router :
And then the code breaks in UPnPMCastSocket::parseResponse() when it checks if the KURL location.isValid()
seems like it's got a valid URL to the xml file - next step is check why KURL is reporting it as not valid.. RikD[/code] |
![]() Registered Member ![]()
|
Ureka!
Got it to detect my router.. 2 problems. 1. I'm running twonkyserver and for some reason that is causing problems despite a valid server. (info attached below) 2. if you look at my previous post. my router would report it's location as
But when creating the KURL the space after the first : is left and KURl reports the URL as malformed. removing that space resolves the problem If I turn off twonkyserver and then run ktorrent with my quick fix at line 131 of upnpmcastsocket.cpp to
A bit rough and ready I know - but just didn't have the time to work out a more elegant solution. Now to the other problem... If I'm running twonky, I get many problems - here's the log
Just not sure why it detects the twonky server running so much - I would have expected 3 - but not this... RikD |
![]() Moderator ![]()
|
Indeed you are right I forgot to strip the whitespace on the location variable (for some reason I did do the server variable, my brain must have been not functioning 100 %).
Now the twonky thing, lets ignore the many replies and deal with the parsing first, can you get me the XML files from those routers. Just do wget on the location, that gives you the xml description and then post it here. |
![]() Registered Member ![]()
|
Twonky isn't a router it's a media server. XML file attached
As mentioned - would expect 3 replies, 1 for each of the interfaces (127.0.0.1, 192.168.0.20 and 192.168.1.8 ). The XML File from the DLink is
Rik. |
![]() Moderator ![]()
|
|
![]() Registered Member ![]()
|
no it's not the actual file - was looking at it through firefox. here's the actual file
As for twonky - I realise that it;'s a media server and the UPnp supported isn't for AV servers - but the question is why does the plugin attempt to add it to the routers description and is there some means for us to ignore it? Rik. |
Registered users: bancha, Bing [Bot], Google [Bot], Sogou [Bot]