I need to use nc -lp4 5432 --allow 192.168.1.24
but I have a previous nc
directive that only has it listening on localhost
. It throws an error when I try overwriting it:
$ nc -lp4 5432 --allow 192.168.1.24
Ncat: Got more than one port specification: 4 5432. QUITTING.
How can I overwrite the previous instruction, or delete that listener? I've had a look around and I can't find how to get this removed.