Некоторые версии nc
имеют параметр -p
с другим значением:
-p source_port
Specifies the source port nc should use, subject to privilege restrictions and availability. It is
an error to use this option in conjunction with the -l option.
, а другой:
-p port local port number (port numbers can be individual or ranges: lo-hi [inclusive])
В вашем случае просто используйте ] nc -l 9999> / dev / sdf
достаточно.