Monday, November 2, 2020

Test if a port is opened using netcat

Here's a simple command to test for open port. 

From the destination side, run the following.  This will enable the destination side to listen on that port.

netcat -l -u -p <port number>

Then, from the source side, run the following.

          telnet <destination side ip> <port number>


No comments:

Post a Comment

Thank you for your comment.