[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
number.

http://en.wikipedia.org/wiki/Real-time_Transport_Protocol
"When both protocols are used in conjunction, RTP is usually originated and
received on even port
numbers<http://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers>,
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