TorrServer is a server program that allows you to stream media files downloaded from torrent networks. It can be installed on any device that supports the Linux, Windows or macOS operating system. TorrServer uses the BitTorrent protocol to download files from torrent networks and provides access to them via an HTTP server.
This allows you to play media files without having to fully download them to your device. TorrServer also has a function of automatic scanning and adding new torrent files to the library, which makes it a convenient tool for organizing streaming of media content.
TorrServer includes:
It is also possible to use TorrServer as a local server for storing and streaming media files on your home network.
To create a virtual server with TorrServer, you just need to buy any basic shared hosting plan with the Ubuntu OS and write the following command in its console after connecting via the Putty program:
apt-get update |apt-get install curl -y
dir="/opt/torrserver"
mkdir -p ${dir}
architecture=""
case $(uname -m) in
i386) architecture="386" ;;
i686) architecture="386" ;;
x86_64) architecture="amd64" ;;
arm) dpkg --print-architecture | grep -q "arm64" && architecture="arm64" || architecture="arm7" ;;
esac
url=$(curl --silent https://github.com/YouROK/TorrServer/releases/ | grep TorrServer-linux-${architecture} | head -1 | awk -F " '{print $2}')
wget -O ${dir}/torrserver https://github.com/${url}
chmod +x ${dir}/torrserver
cat << EOF > /etc/systemd/system/torrserver.service
[Unit]
Description = TorrServer
After = network.target
[Service]
User = root
Group = root
#Environment="GODEBUG=madvdontneed=1"
Type = simple
NonBlocking = true
ExecStart = ${dir}/torrserver -d ${dir} -p 8090
ExecReload = /bin/kill -HUP ${MAINPID}
ExecStop = /bin/kill -INT ${MAINPID}
TimeoutSec = 30
WorkingDirectory = ${dir}
Restart = on-failure
RestartSec = 5s
#LimitNOFILE = 4096
[Install]
WantedBy = multi-user.target
EOF
systemctl daemon-reload
systemctl start torrserver.service
systemctl enable torrserver.service
echo -e "nTorrServer Online - installation is completen" >/dev/pts
After entering this command, you will be able to connect to your server through its IP address with port 8090 (which you can change in advance in the code above).