Netcat is a fantastic tool for tying networked devices together in the spirit of DucTape, baling wire and twine... How it Works Netcat connects a network socket to stdin and stdout. To initiate a connection, it can act either as a listener or a client. Once connected, it will simply shovel data back and forth. That is all. What you do with it is totally up to your imagination. Here is a netcat based Double Listener Relay: mkfifo /tmp/buf nc –l 5566 <buf | nc -l 6655 >buf It uses two instances of netcat, tied together through stdin and stdout, with the help of a fifo. One could make such a relay on a public addressable server where anyone can connect to it. The first netcat listens on port 5566 and gets its std input from the fifo buf and sends its std output to the std input of another netcat instance through a pipe operator. The second netcat listens on port 6655, gets its std input from the previous netcat and sends its std output to the fifo b
Autonomous planes, trains and cranes...