windowsnetwork-programmingcommand-prompt

How do i verify that port 5555 is open?


I have a task in a lab for my cyber-security class where I have to verify in the command prompt that the port 5555 is open and not in use. I have tried the following command with these flags:

$> netstat -na | find "5555"

When I tried that command, there was no output, just blank.


Solution

  • You can either use netstat or sudo lsof -i tcp:5555.

    If you don't get a response on your terminal, it means that there's nothing running on port 5555.