<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
--></style><title>Re: [Live-devel] issue with a streaming server
having mult</title></head><body>
<blockquote type="cite" cite>Ross Finlayson wrote:<br>
<blockquote type="cite" cite>
<blockquote type="cite" cite><tt>I have tried it (I am having problems
with a multiple-interface<br>
machine). It seems to get halfway there: We now compute the<br>
Content-Base URL appropriately (and source= element in the RTSP<br>
SETUP reply [though the o= line of the SDP still has a different
IP<br>
address. This may be appropriate, I don't have a clear idea of how<br>
it is used, if at all.]. However, the RTP and RTCP packets come
from<br>
the "wrong" IP address, i.e. not necessarily the IP address
of the<br>
interface that the connection was made to.<br>
<br>
It seems that some firewalls block all of the UDP traffic under<br>
these circumstances. The UDP sockets need to be bound to the<br>
appropriate interface, rather than INADDR_ANY, to ensure that they<br>
come from the correct IP address.<br>
</tt><br>
</blockquote>
</blockquote>
<blockquote type="cite" cite><tt><br>
You can do this by modifying your code to set<br>
"ReceivingInterfaceAddr" at the start.<br>
</tt><br>
</blockquote>
</blockquote>
<blockquote type="cite" cite>The problem is that I want to be able to
accept RTSP connections from *all* of the interfaces. So the UDP
sockets need to be bound on a per-connection basis, depending on what
interface the RTSP came in on. If I understand correctly,
ReceivingInterfaceAddr is a static global, so it would set the
interface once and for all.</blockquote>
<div><br>
<br>
</div>
<div>Mumble... I suppose you could set it each time, just before
creating each RTP sink object. E.g., you could do this in your
"createNewRTPSink()" virtual function (in your
"ServerMediaSession" subclass), before you actually create
the RTP sink.</div>
<div><br></div>
<x-sigsep><pre>--
</pre></x-sigsep>
<div><br>
Ross Finlayson<br>
Live Networks, Inc.<br>
http://www.live555.com/</div>
</body>
</html>