What range of UDP ports may rtsp use, to configure a firewall?

To allow incoming rtsp streams, I must open incoming TCP port 554. I must also open a range of UDP ports.

6970 through 6999, says .

At least 8466 through 8469, says my own lsof output, when streaming from youtube (

ffplay rtsp:// 

, if that stays intact for a day or two).

Is there any constraint on which UDP ports an rtsp server might request in the client_port and server_port fields of a SETUP request ( )?

In other words, must I open all UDP ports in my firewall? (I'm using shorewall on Ubuntu, if that makes a difference.)

1 Answer

As an example, the client RealPlayer uses UDP ports 6970-7170 by default, but that range may be changed, says ‎.

The client VLC needs UDP port 15947, says .

Other clients and servers might have other values.

So if you can't assume a particular client or server, then to guarantee incoming rtsp you must indeed open all UDP ports. Sigh.

0

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like