[vlc-devel] rtcp and udp port collision

David Glaude david.glaude at gmail.com
Fri Oct 22 11:45:20 CEST 2010

There should be no problem if RTP always use EVEN number and RTCP use ODD

"When both protocols are used in conjunction, RTP is usually originated and
received on even port
whereas RTCP uses the next higher odd port number."

Maybe server (vlc), in stream_out/rtcp.c line 79 should binds port number
a+1 ... and it you make sure that "a" is even.

David Glaude

PS: I say this without ever looking at the source code...

2010/10/22 Sébastien Escudier <sebastien-devel at celeos.eu>

> Hi,
> I have a rtsp client and rtsp server on the same computer.
> The client binds port number a and a+1
> The server (vlc), in stream_out/rtcp.c line 79 binds port number a-1
> (net_GetSockAddress), and, unfortunately, it tries to bind port number a
> (ie
> (a-1)++ ) which is already in use by the client.
> Any idea if this could be fixed, and how.
> Thanks.
> Sebastien.
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20101022/3ffe187d/attachment.html>

More information about the vlc-devel mailing list