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.
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.
A -> C <- B
The idea is as follows:
- A establishes a TCP connection to C and simply waits
- B establishes a TCP connection to C when it wants something from A.
- C reads the data from B and responds with it to the already open connection from A.
- A processes the data and responds to C, which relays to B.
Is there an existing tool out there that can do this?