Modified netcat command to work on OSX
disccomp opened this issue · comments
Mark Moran commented
nc -l localhost 2001
works, while nc -l -p 2001
gave me: nc: missing port with option -l
Alex Phenom commented
@disccomp thanks for the correction!
Ruben Kostandyan commented
For me nc -l 2001
worked, without writing localhost
.
Ilya Panin commented
According to command line help (-h):
-p port Specify local port for remote connects (cannot use with -l)