When we are using windows 10, we may want to know what ports are used. In this tutorial, we will discuss this topic.
Step 1: open command prompt in windows 10
It means we use cmd command to open it.
Step: use netstat -ano command
netstat -ano
Run this code, we may see:
We can find what ports are used from the result.
However, there are many rows, how to find the port that we want to check.
Step 3: use netstat -ano | findstr “port_number” command
For example, we want to know whether port 445 is used or not, we can do as follows:
netstat -ano | findstr "445"
Run this code, we may see:
TCP 0.0.0.0:445 0.0.0.0:0 LISTENING 4 TCP [::]:445 [::]:0 LISTENING 4
It means port 445 is used by some applications.
If you can not find any outputs, it means this port is not used by any application.