Send a file with netcat

October 28, 2017

I’ve mentioned how to send a file with IPFS and also how to send a file with an assortment of modern techniques. Here’s yet another method to send a file. It’s only a line of bash, and you can get a nice progress bar and upload to any server that is listening on a certain TCP port.

On the server computer,, that is receiving the file, just do:

netcat -l -p 6000 > somefile

On the other computer that is sending the file just do:

cat somefile | pv | netcat 6000

Show comments
Written on 28 October 2017. Categories: coding.

«Look ma, no hard disk 
Odd one out»