Portal Home > Knowledgebase > Security & Optimization > How to List All Open/Listening Ports


How to List All Open/Listening Ports




If you find yourself needing to check all open/listening ports that your server is using (a good idea for security), run the follow command via SSH:

# netstat -tulp

The command will print a list of all open ports, the programs using them, their PIDs, local addresses, and connection type (tcp/udp).



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read