I just finished setting this up and thought it might be useful for the community:
You need SSH access to the NAS. The first thing to do is to make sure your router is allowing connections on the 9091 port, which is the default port used by transmission. Then:
- Check (for example in https://www.canyouseeme.org/) that you cannot communicate with the NAS from the exterior through 9091;
- Wonder whether your ISP is just blocking this port, and realize it probably isn’t.
- Run
netstat -tulpn | grep 9091
to see what’s going on - you should find out that the NAS is only listening to 127.0.0.1, i.e. the localhost. - Now we need to change transmission’s settings: run
ps aux | grep transmission
to find processes associated to transmission, and you should find that there is a daemon running, connected to the configuration file in/mnt/HD/HD_a2/Nas_Prog/Transmission/config/settings.json
. - Edit the file using
vi /mnt/HD/HD_a2/Nas_Prog/Transmission/config/settings.json
, and change both “bind-address-ipv4” and “rpc-bind-address” to 0.0.0.0 - Restart the daemon
pkill -HUP transmission-da
. - Check that the NAS is now listening on 9091 to every ip:
tcp 0 0 0.0.0.0:9091 0.0.0.0:* LISTEN
. Yay! - Now you can connect from any external network using
yourip:9091
.
And that’s the memo.