restreamer
restreamer copied to clipboard
OBS RTMP Stream start: Connection to server failed
Subject of the issue No matter how much troubleshooting I did the last days unfortunately I get the error after copying the RTMP address into OBS deleting the token saving and trying to start the stream so I can process further on the Restreamer site won't work. I tried disableing the antivirus (Win Defender is disabled at all), I changed the Restreamer domain to the 127.0.0.1 also for the test, I opened all needed ports, everything runs as an admin, but nothing won't help. I asked my streamer colleague who also uses Restreamer, but his workaround also didn't help.
Your environment OBS, Win 10, Wired and WiFi Connection enabled - the pull via Docker Desktop worked fine
Files
Added Process-Report and Docker Desktop Log, Screenshot of German Error
DockerDesktopLog.txt
report.txt
Steps to reproduce Accessing the Admin UI via http://127.0.0.1:8080 - retrieving RTMP address. Copying to OBS in the settings in user defined RTMP settings, deleting Token. Starting stream, then the error pops up
Expected behavior Stream starts and I can continue to configurate the rest for the Restream on the Admin panel
Actual behavior Connection to server failed and I can't proceed
Hi @AgataAah
I tested the setup with OBS 30 (MacOS) and datarhei/restreamer:latest. TL;DR it works.
These are the steps:
- Starting
datarhei/restreamer:latestwithdocker run. The ports 8080 (for the UI) and 1935 (for RTMP) need to be exposed. - Enabling the RTMP server. These are the settings I used:
- Restarting Restreamer in order to start the RTMP server. In your DockerDesktopLog.txt I see, that you successfully activated the RTMP server.
- In the Video Setup select "RTMP server". It gives you an URL similar to
rtmp://123.123.66.43/8e2be910-294e-43e6-93cc-f52ba92ec3ec.stream?token=foobar. - This you copy-paste into OBS in the custom stream settings. Leave the Stream Key field empty.
- Now the important step. Adjust the IP address of the RTMP URL. Change it to
127.0.0.1if OBS and Restreamer are on the same machine. If Restreamer is running on a different machine in your local network, change it to that IP address. - In the OBS output settings change the encoder to x264.
- Start streaming
Hello @ioppermann
Thank you lots for your support.
I reproduced all the steps, now it works! Thank you!
Short question for that: was it the token? Is it mandatory in Restreamer? It's basically the only thing I changed, before I left the field empty
The token is highly recommended because it protects the RTMP server. Only if you know the correct token, you will be able to send a stream to the RTMP server. It is like a stream key, but with another name.
If you don't define a token and your Restreamer is accessible by a public IP address, then anyone could send a stream to your RTMP server.
Hello, I keep on getting from obs. ### Could not access the specified channel or stream key, please double-check your stream key. If it is correct, there may be a problem connecting to the server. What could i be missing? I have hosted Restreamer on ubuntu cloud and am using nginx for the proxy.So my challenge is that when trying to stream from obs through RTMP its giving me that error