Create file something.txt Content of file is 1
cat something.txt | netcat [ip-address] [port]
At destination you must have something to listen this.
or
Server:
netcat -l -p [port]
to listen connection
Client:
netcat [server-ip-address] [port]
After connection is establish on cilent simple type 1
and hit enter
by http://askubuntu.com/a/443235 and http://www.computerhope.com/unix/nc.htm