[Live-devel] How to restrict ports the server can use for RTP

Ross Finlayson finlayson at live555.com
Thu Jan 8 02:09:26 PST 2009


>Is there a way (method or property in the RTSP server class or 
>something) to restrict the ports the server can use for RTP/RTCP 
>ports.

The "OnDemandServerMediaSubsession" constructor takes a parameter 
"initialPortNum", which is used to set the lowest possible port 
number that the server can use (when streaming from a 
"ServerMediaSubsession" derived from this class).  (The default value 
of this parameter is 6970, which is the value used by Apple's RTSP 
servers (and some others).)

Starting from this 'lower bound', the code uses as many port numbers 
as are needed (depending on the number of streams per session, and 
the number of clients) - so there's no 'upper bound' port number in 
the code.
-- 

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/


More information about the live-devel mailing list