GNOME Bugzilla – Bug 602321
gst-rtsp-server does not listen for IPv6 connections
Last modified: 2010-03-19 16:20:25 UTC
gst-rtsp-server 0.10.5 (or at least the example applications that it builds) seem not to listen for IPv6 connections. When running the example applications test-video and test-ogg, an incoming TCPv6 connection on port 8554 is refused immediately with a TCP RST, while the TCPv4 connection works fine.
Created attachment 148100 [details] [review] Make gst-rtsp-server IPv6-only As a starting point, I was able to convert gst-rtsp-server from IPv4-only to IPv6-only, with the attached patch. Using these changes I was able to stream a Theora video over IPv6 with the test-ogg example application. I'm not sure what needs to happen to move forward though: should gst-rtsp-server listen simultaneously for incoming IPv4 and IPv6 connections (by opening both sockets)... or should the calling code have to select an address family?
It would be nice to have some flags that specify what version to use. I guess it then needs 2 sockets, one for each version..
I'm not going to merge your patch but I did play around a little and got quite far. git versions of the server can now be configured to bind to an ipv6 address. The reamining things left is to put the IPV6 stuff in the SDP and to configure the udp sockets in ipv6.
With git version of gst-rtsp-server, if you configure the server part to listen on ::0 (or similar IPV6 addresses) it should serve everything over IPV6.