Netcat That nc, it is well known, it is known as TCP / IP Swiss army knife. It is used in file transfer, most of the information found online are using the -l option directly behind the listener with the port number that
nc -l 6666 > recvfile
But in practice, when the sending end, i.e. performs
nc dst.ip 6666 < sendfile
It was an error.
The whole process seems to be related to the same tutorial to everyone online. Environmental reasons may be different, but in my tests, the recipient should be listening to function properly interact with -p parameter to explicitly specify the port number that
nc -l -p 6666 > recvfile
In this case the sender to specify a listener port can send files successfully
Hope this program to help everyone