1 2 3 4 5 6 7 8 9 10
The sender opens a port for a 1, doesn't do anything to send a 0. Obviously, the receiver should know the sender's IP address. Usage on the receiver's side: $ ./receive.sh Usage on the sender's side: $ echo 010101110110110 | ./send.sh