<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div><pre><strong>Do you know a way to change the SETUPrtsp in your client code (openRTSP) to indicate that the two track go to two different IP (interface) for example:</strong></pre>
<pre>4,0.002474,195.134.1.6,195.134.1.2,RTSP/SDP,Reply:RTSP/1.0200OK,withsessiondescription
5,0.004125,195.134.1.2,195.134.1.6,RTSP,SETUPrtsp://<strong>195.134.1.<span style="color: #ff0000;">3</span></strong>/spatialSoc_basenh3.mp4/trackID=65536RTSP/1.0
6,0.004885,195.134.1.6,195.134.1.2,RTSP,Reply:RTSP/1.0200OK
7,0.005351,195.134.1.2,195.134.1.6,RTSP,SETUPrtsp://<strong>195.134.1.<span style="color: #ff0000;">6</span></strong>/spatialSoc_basenh3.mp4/trackID=65538RTSP/1.0
</pre></div></blockquote><div><br></div></div>No - this makes no sense. The IP address (actually, it could also be a domain name) in the "rtsp://" URL that appears in a RTSP command (such as "SETUP") refers to an address on the *server*. It is not a client address. (Note that, in practice, because RTSP commands are sent over a TCP connection that has already been set up, these IP addresses (or domain names) in the "rtsp://" URLs are not actually looked at all by the server.)<div><br></div><div>If you - as a RTSP client - want to specify that the stream should be sent to a *different* IP address from the IP address of the client, then the way to do this - in the RTSP protocol - is to include, in the "SETUP" command, a "Transport:" header that contains, e.g.</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>destination=123.45.67.89;</div><div><br></div><div>However, there are two big practical problems with doing this:</div><div>1/ Our RTSP client code does not support this (and there are no plans to do so). (Conceivably, you *might* be able to implement this by subclassing "RTSPClient", but it wouldn't be easy.)</div><div>2/ Most servers will not handle "destination=" parameters in a "SETUP" command's "Transport:" header, because it (i.e., allowing a client to specify some arbitrary 3rd party as being the stream's destination) is a security risk: It makes possible 'denial of service' attacks. Our server implementation does support this, but only if the compile-time macro RTSP_ALLOW_CLIENT_DESTINATION_SETTING is defined (see "RTSPServer.cpp", line 1282).</div><div><br></div><div>But if your intention is to send the two video tracks to different interfaces within the same client, then the best way to do this is to keep things the way that they work now: Send both streams to the same (client) IP address, but with different port numbers.</div><br><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">Ross Finlayson<br>Live Networks, Inc.<br><a href="http://www.live555.com/">http://www.live555.com/</a></span></span>
</div>
<br></body></html>