is a handy network swiss army knife.
It can even be used to copy a file from one host to another over the network.
This is how you do it:
On the server, run:
nc -l -p 8080 > somefile.txt
On the client, run:
cat somefile.txt | nc 10.0.0.1 8080
This will copy
somefile.txt from the client to the server on
10.0.0.1 using port