So, i know the nc has different versions like openbsd-netcat and gnu-netcat, you can change the nc in debian to the openbsd version, but i choose to change the software like corkscrew,.
I am using nc command in my linux box like below to check if a port is listening;
This displays success message:
Nc -z 192. 168. 0. 2 9000 this displays 0:
I have combined it in a.