correl / Transmission-XBMC

A frontend script for the Transmission Bittorrent client for XBMC
MIT License
44 stars 31 forks source link

Can not connect to remote transmission-daemon #36

Open RecNes opened 9 years ago

RecNes commented 9 years ago

I have a server which is running transmission daemon as a service and I'm using it over it's web ui nearly 6 months.

Recently I convert old my laptop to Media Center with Kodi and I added this addon from KODI's interface. I set up connection like this;

Host: 192.168.1.250 Port: 9091 User: (empty) Password: (empty)

User name and password was empty because I disabled RPC auth from transmission settings. I though this is may be problem. So I wrote a password and enabled auth. I have tried browser first and I can be able to login with user name and password. After that, I wrote same info into transmission add-on and save. So, when I try to start transmission add-on it throws this error since the beginning: Could not connect to transmission.

By the way I can reach transmission port from KODI machine as you can see below:

kodi@Studio-1535:~/.kodi/addons/script.transmission$ nc -w 1 -z -v 192.168.1.250 9091 Connection to 192.168.1.250 9091 port [tcp/*] succeeded! kodi@Studio-1535:~/.kodi/addons/script.transmission$

Also the transmission configuration is below (unnecessary information not included):

{ ... "bind-address-ipv4": "192.168.1.250", "bind-address-ipv6": "::", ... "rpc-authentication-required": true, "rpc-bind-address": "192.168.1.250", "rpc-enabled": true, "rpc-password": "{c1c5bf8b9dd95e641563efc7db8c24d49b5d0b4exGiBdnNW", "rpc-port": 9091, "rpc-url": "/transmissionweb/", "rpc-username": "admin", "rpc-whitelist": "127.0.0.1, 192.168.1.*", "rpc-whitelist-enabled": true, "scrape-paused-torrents-enabled": true, ... "utp-enabled": true, }

correl commented 8 years ago

I expect it's because the rpc-url setting is set to =/transmissionweb/= rather than the default, =/transmission/=. The addon does not yet support configuring the URL, and is expecting to reach it at the default url.

correl commented 8 years ago

I looked through the library I'm using.... you should be able to supply the address as a complete URL ("http://hostname:port/transmissionweb/"), and it ought to work.

RecNes commented 8 years ago

Umm! Of course. Now I remember I did change the url, once. Thank you for answer. I'm going to restore that url and try again tonight. I will update you.

RecNes commented 8 years ago

I restored URL and it's done. Thank you.