Problem Statement
How can you verify if a remote port is open using the command line?
Explanation
Use telnet or nc (netcat) to check connectivity to a remote port.
If the port is open, the connection succeeds; otherwise, it times out. It’s often used to verify database or API endpoint availability.
Code Solution
SolutionRead Only
nc -zv 192.168.1.50 22
Practice Sets
This question appears in the following practice sets: