title: Forward RTSP stream to remote socket (RTSP Proxy?)
body: <p>My Apologies for the generality of the question. I have tried many things but nothing seems to work.
  I have a server? (let's call it <em>Server A</em>) that resides in a local area network where there is also an IP-Webcam. That webcam is constantly providing an RTSP feed on the address... let's say... <code>rtsp://192.168.1.50:554/cam.sdp</code>. The camera doesn't have access to the outside world (it must stay in the LAN, and therefore, only has access to <em>server A</em>, no to <em>server B</em>), but <em>server A</em> does. Sadly, <em>Server A</em> doesn't have a public IP, so I can not reach into <em>Server A</em> from anywhere in the world. <em>Server A</em> can go out if it wants but no one can get into <em>Server A</em>... (it's an spoiled brat... too many toys when it was a kid)</p>
  
  <p>Now, there's another server (<em>server B</em>, to be original) in the aforementioned outside world which is a regular web server with its public IP and all. That server allows people to reach into it (not spoiled, very nice... sets the table, does the dishes... that kind of stuff). Both <em>Server A</em> and <em>Server B</em> are my computers and are running Ubuntu 12.04 and some Python applications I designed (<em>Server B</em> is actually running Django, but I don't think that's too relevant). What I mean by this is that I have control over what's going on in both servers. I can install/uninstall packages, I can open ports, close ports... whatever is needed (I can even format them if I want, although I don't think that would help much... or yes... who knows?)</p>
  
  <pre><code>                               _____________                                    _____________
      -----------                |           |                                    |           |   
   __ |         |                |           |                                    |           |     
  |  \| WebCam  |================| Server A  |===========|  INTERNET  |===========| Server B  |
  |__/|         | -&gt;/cam.sdp  &lt;--|           |----------------- &gt; --------------&gt; *           | 
      |         |                |___________|                                    |___________|
      -----------
  </code></pre>
  
  <p>The question is: How can I grab the RTSP stream with <em>server A</em> dump it onto a designated socket of <em>server B</em> and open it (with a program able to understand RTSP feeds, such as VLC)? </p>
  
  <p>I'm guessing I need something like an RTSP proxy, maybe? But I don't really know where to start. </p>
  
  <p>Any hint, link... would be appreciated.</p>
  
  <p>Thank you in advance</p>