live streaming using an RTSP/RTP-based encoder

we trying to setup live streaming using an RTSP/RTP-based encoder, on our server we use the csf firewall. if the csf firewall is disabled the rtsp connects and everything works, if it is enabled then the rtsp has the below error:

Unknown connection error

for what I see from the page

https://www.wowza.com/docs/how-to-set-up-live-streaming-using-an-rtsp-rtp-based-encoder

I have to allow incoming and outgoing UDP ports from 0-65535 on the csf.

but it still not working when I allow these ports. but the strange issue is that some services on the wowza jump from a few viewers online to hundreds of viewers, all iOS connections.

my question is what I’m doing wrong?

Thanks

It’s best to open all UDP ports (0-65535) for RTSP/RTP streaming. On the incoming side, the Wowza media server software tries to use ports in the range 6970-9999. On the outgoing side, the port choice is made by the receiving device so it’s best to open all ports to outgoing UDP traffic. Setting up UDP networking correctly is sometimes difficult and depends on your router and firewall configuration. If behind NAT (network address translation), it’s important that all UDP ports are mapped to the server running the Wowza media server software.

Wowza provides a RTSP/RTP test stream running on Amazon EC2, which seems to work on most mobile networks/devices. Amazon EC2 is a great place to experiment with RTSP/RTP streaming. For more information, see Wowza for Amazon EC2.

Some carriers don’t allow RTP or UDP over the carrier network. Many mobile devices will rollover to RTSP/RTP interleaved (RTP over TCP). These devices will work when the carrier doesn’t support UDP. Some devices don’t support RTSP/RTP interleaved and won’t work if RTP or UDP is blocked by the carrier. Use the RTSP/RTP test stream to see if it works first before setting up your streams.

for more information please take a look at this guide:

How to troubleshoot RTSP/RTP playback

I hope this helps.

Regards,

Salvadore

thank you Salvadore. adjusting the bitrate solved the issue.

Okay great! Thanks for the update and glad to hear this is working.

Regards,

Salvadore