[Live-devel] RTP/RTCP Server Port number configuration

Ross Finlayson finlayson at live555.com
Fri Mar 30 13:01:02 PDT 2012


> How does  OnDemand RTSP Server choose RTP-RTCP server ports ?
> How to configure these port numbers to a predefined value ?

You can't configure these port numbers to *a* predefined value, because it's possible for the server to be handling concurrent connections from several different clients, in which case the server uses different port number pairs (RTP even; RTCP odd) for each connection.  

The port number range that the server uses depends upon the "initialPortNum" parameter to the "OnDemandServerMediaSubsession" constructor.  By default, this parameter is 6970, which means that the server will try {6970,6971}, then {6972,6973}, etc., until it finds a port number pair that isn't already used.

So, if you want to change this parameter, you would do so in your subclass(es) of "OnDemandServerMediaSubsession" (when their constructor calls the "OnDemandServerMediaSubsession" constructor).


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20120330/6d9d97f7/attachment.html>


More information about the live-devel mailing list