JohnDoee / autotorrent2

Cross-seed matching and torrent lifecycle tool
https://johndoee.github.io/autotorrent2/
MIT License
142 stars 10 forks source link

issue connecting to rutorrent #55

Closed mpk99 closed 5 months ago

mpk99 commented 5 months ago

hi there -- used this script before with qbitorrent, but moving to rutorrent. I'm running this docker container:

https://github.com/crazy-max/docker-rtorrent-rutorrent

but i can't figure out how to connect to it: i tried what was suggested here:

https://github.com/JohnDoee/autotorrent2/issues/29#issuecomment-1214219069

but it just gives me a 401 error when trying to runt the test connection command.

Hopefully somebody can help?

thx

JohnDoee commented 5 months ago

It can't connect to rutorrent, only rtorrent directly.

mpk99 commented 5 months ago

k. well I guess how can I get it to point to my torrent instance? I can't figure out where to find the proper values?

JohnDoee commented 5 months ago

With that rtorrent setup it is probably not that easy. The container you're looking at is designed to not expose rtorrent directly (because it can be insecure).

The setting you need into .rtorrent.rc is found here: https://github.com/rakshasa/rtorrent/blob/1da0e3476dcabbf74b2e836d6b4c37b4d96bde09/doc/rtorrent.rc#L126 It has to listen to something like 0.0.0.0 and NOT be exposed directly to the internet.

e.g. network.scgi.open_port = "0.0.0.0:5000" then autotorrent can reach rtorrent on port 5000.