Noxalus / Multi-Streaming-Server

A NGINX server with RTMP module to send video streaming to multiple services simultaneously (Youtube, Twitch, Dailymotion, Hitbox, Beam, etc...).
173 stars 41 forks source link

Issue with remote connection #5

Closed EasyAsABC123 closed 6 years ago

EasyAsABC123 commented 8 years ago

i'm using vagrant and it appear to be working, i'm connecting to the machine over ssh and can see the server up and running.

Change in Vagrantfile

config.vm.network "public_network"

OBS connects just fine, to the public IP however external IPs cannot connect to the RTMP stream. Is this something wrong with my virtualbox driver? or anything you would know? the stats page shows the inbound data and then I can stream the content locally and it shows the output...it just doesn't work over the network externally (not sure if internally from another computer either, i'll check that tomorrow). I'll also test this on another computer.

Noxalus commented 8 years ago

Sorry, I'm not sure to understand what you want to do actually. You say that you can't connect to the RTMP stream from external IPs, but you want to read or push the stream data?

If you want to read the stream, I don't really know how to do it, but I suppose that you need a server that handle RTMP protocol and push to the URL corresponding to this server into your nginx.conf file.

If you want to write the stream, please make sure that the allow publish directive contains the external IP.

EasyAsABC123 commented 8 years ago

No I'm writing to the stream locally. Then from an external IP someone else will read from it. You can do this with a flash client or with ffplay/ffmpeg

Justin Schuhmann

On May 29, 2016, at 5:50 AM, Noxalus notifications@github.com wrote:

Sorry, I'm not sure to understand what you want to do actually. You say that you can't connect to the RTMP stream from external IPs, but you want to read or push the stream data?

If you want to read the stream, I don't really know how to do it, but I suppose that you need a server that handle RTMP protocol and push to the URL corresponding to this server into your nginx.conf file.

If you want to write the stream, please make sure that the allow publish directive contains the external IP.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

Noxalus commented 8 years ago

Ok, I see now. Did you try adding a directive allow play all; in the live application? (just after the allow publish directive for instance).

Noxalus commented 8 years ago

You should also try enabling HLS:

hls on;
hls_nested on;
hls_path /hsl/live;
hls_fragment 10s;
EasyAsABC123 commented 8 years ago

I don't need to do that when basically doing the same vagrant steps by hand...it only happens when i'm using this vagrant

On Sun, May 29, 2016 at 1:06 PM, Noxalus notifications@github.com wrote:

You should also try enabling HLS:

hls on; hls_nested on; hls_path /hsl/live; hls_fragment 10s;

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Noxalus/Multi-Streaming-Server/issues/5#issuecomment-222371231, or mute the thread https://github.com/notifications/unsubscribe/ABw-4GGSrZdi1zXjdOBWxIrwmcwma4Mlks5qGcd8gaJpZM4IpPLM .

EasyAsABC123 commented 8 years ago

I redid the steps by hand and it works fine...issue with vagrant or the NAT + Public IP