Netcat

# Host:
nc -lvnp 9001 | tee file.out
nc -lvnp 9001 > file.out

# Remote:
nc HOSTIP PORT < FILE

Last updated