Relay server for SRT streams between two endpoints.
You have to install Docker and Docker Compose to run the server.
git clone https://github.com/TechnoTUT/srt-relay.git
cd srt-live-server
echo "<your-passphrase>" > .passphrase
docker compose build
docker compose upYou must replace .passphrase with your own passphrase.
If you want to run the server in the background, you can use the -d option.
docker compose up -dIf you are using a firewall, you have to open the port 2000/udp and 3000/udp.
For example, this is how you can open the ports on firewalld.
firewall-cmd --zone=public --add-port=2000/udp --permanent
firewall-cmd --zone=public --add-port=3000/udp --permanent
firewall-cmd --reloaddocker compose downYou can use any SRT streaming software like OBS Studio to stream to the server.
Please configure the stream settings as follows:
- URL:
srt://<server-ip>:2000?mode=caller&passphrase=<your-passphrase>&pbkeylen=32 - Stream key: None
You can receive the stream from the server using any SRT compatible player like VLC or OBS Studio. Please configure the player settings as follows:
- URL:
srt://<server-ip>:3000?mode=caller&passphrase=<your-passphrase>&pbkeylen=32