0
Thanks

A few words of thanks would be greatly appreciated.

How To Display List of Open Ports in Command Line


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 generally closed by a firewall.


For users with systems based on the Windows or Linux platforms, it is possible to find out which ports are open. Once the command line interface in the in-console command prompt is inserted, the command will definitively reveal the list of open ports on the computer so that they can be secured.

Show List of Open Ports in Command Line

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


netstat -a

For the use of advanced graphics tools, refer to What are the open ports on my machine? this FAQ.

Image: © Arian Darvishi - Unsplash.com
0
Thanks

A few words of thanks would be greatly appreciated.

Ask a question
Jean-François Pillou

CCM is a leading international tech website. Our content is written in collaboration with IT experts, under the direction of Jeff Pillou, founder of CCM.net. CCM reaches more than 50 million unique visitors per month and is available in 11 languages.

Learn more about the CCM team

Related

Published by . Latest update on by Olivia Long.

This document, titled "How To Display List of Open Ports in Command Line," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (https://ccm.net/).

0 Comments