Ask a question »

List of open ports in command line

February 2016

Open ports in any system are meant to accept network packets that can compromise the security of the computer to a great extent. For security issues ports that are unused are closed generally by the firewall. For users with systems based on the Windows or Linux platforms, it is possible to find out the open ports. Once the command line interface in console-command prompt is inserted, the command will definitely reveal the list of the open ports on the computer, so that they can be secured.

List of open ports in command line

Whether you're running Windows or Linux / Unix, the following command ( in console-command prompt) will display the list of open ports on your computer:
netstat -a

For the use of advanced graphics tools, read this FAQ:
For unlimited offline reading, you can download this article for free in PDF format:

See also

In the same category

Published by jak58. - Latest update by Rik Sharma
This document entitled « List of open ports in command line » from CCM ( is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.