commands are:

iptables -I INPUT -p tcp --dport 3389 -j ACCEPT > to open only that tcp port

sudo ufw enable transmission > to open the whole program

being a newbie I’d say it’s safer to only open a determined port with iptables. What do you think?