2

I want to set up netcat in listening mode so that many clients can connect and they all receive the same file. The clients should be able to connect simultaneously...

Is this possible?

Zabuzzman
  • 733
  • 10
  • 25

1 Answers1

5
$ nc --listen --keep-open --send-only --exec "/usr/bin/cat /path/to/myfile" 0.0.0.0 5800
$ nc 127.0.0.1 5800 > recvfile
Spack
  • 1,604
  • 15
  • 22