On the receiving end running
nc -l -p 1234 > out.file
will begin listening on port 1234.
On the sending end running
nc -w 3 [destination] 1234 < out.file
will connect to the receiver and begin sending file.
Consider adding pv
to check progress of really large files
https://nakkaya.com/2009/04/15/using-netcat-for-file-transfers/