[Live-devel] Setting an upper limit on ports available for RTP use

Ross Finlayson finlayson at live555.com
Wed Sep 26 20:04:38 PDT 2012


> As part of upgrading our version of LiveMedia I'm reminded of a modification that we put in our code and suggested to you but apparently never made it into the code.
> 
> We put in a way to set an upper limit on the ports available for RTP/RTCP use. We did this for servers that are behind a NAT or firewall where only a limited number of ports are forwarded through to the server and we didn't want the server to assign ports outside that range.
> 
> We simply added a number of ports parameter to RTSPServer and OnDemandServerMediaSubsession (where it's really used in getStreamParameters()).
> Do you think this feature could be added to the code?

Mumble... Maybe, but I don't consider this a high-priority request, because it would make the server *less* functional.  (If the server could only allocate port numbers that were outside your preferred range, then the stream would still be accessible if the client happened to be inside your firewall.) Also, just setting an upper limit on port numbers wouldn't be enough; I would also need to update the code to respond to the "SETUP" with an error response code if the server were unable to allocate port numbers in the desired range.


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/20120926/6ff4d1f6/attachment.html>


More information about the live-devel mailing list