At work ( BSD nc version ) and on many internet examples ncat can listen to udp and be used with the following options :
1.
-k
which allows multiple connections
2. -w 0
which terminates the current connection when the client disconnects
At home I have the following
Command : Ncat: Version 7.60 ( https://nmap.org/ncat )
OS : Fedora 27
I am unable to use either -k
or -w 0
.
ncat -klu localhost 8000
Ncat: UDP mode does not support the -k or --keep-open options, except with --exec or --sh-exec. QUITTING.
nc -luw 0 localhost 8000
Ncat: Invalid -w timeout (must be greater than 0). QUITTING.
How do I do the keep alive and the instant timeout in my version of ncat? ( man page does not help )
Thanks
Asked by rlon134
(21 rep)
Jun 16, 2018, 01:52 PM
Last activity: Aug 20, 2024, 05:04 PM
Last activity: Aug 20, 2024, 05:04 PM