title: Existing TCP Relay Solutions
body: <p>I have a scenario which requires the use of a TCP Relay. Before I set out to write something custom, I wanted to see if anyone knows of existing software that can do this for me.</p>
  
  <p>I have 2 devices on separate networks that cannot connect to each other. Let's call them networks A and B. These devices need to communicate, and they can do so via a "middleman" relay on network C. A can connect to C, and B can connect to C. C cannot connect to either A or B.</p>
  
  <pre><code>A -&gt; C &lt;- B
  </code></pre>
  
  <p>The idea is as follows:</p>
  
  <ol>
  <li>A establishes a TCP connection to C and simply waits</li>
  <li>B establishes a TCP connection to C when it wants something from A.</li>
  <li>C reads the data from B and responds with it to the already open connection from A.</li>
  <li>A processes the data and responds to C, which relays to B.</li>
  </ol>
  
  <p>Is there an existing tool out there that can do this?</p>