Test to see if a port is open
Using netcat, you can check if a single or multiple or a range of open ports as follows. The command below will help us see if the port 22 is open on the host 192.168.56.10: $ nc -zv 192.168.1.15 22 In the command above, the flag:-z – sets nc to simply scan for listening daemons, without actually sending any data to them.-v – enables