打开防火墙tcp 5000端口:
iptables -I RH-Firewall-1-INPUT 8 -p tcp -m tcp --dport 500-j ACCEPT
源主机发起请求
nc 目的主机ip 目的端口 /tmp/test.out
源主机发起请求
#nc -u 192.168.0.1 5000 filename.out
Using a second machine, connect to the listening nc process, feeding it the file which is to be transferred:
$ nc host.example.com 1234 < filename.in