How to check open ports using CMD? Step-by-Step Guide

To check open ports using CMD in Windows, you can use the netstat command, which displays active connections and listening ports on your computer. Easy open Order Prompt & type netstat -ano, then press Enter. This will list all open ports along with their corresponding IP addresses, protocols, and the process IDs (PIDs) using them. You can then match a PID with the running application in Task Manager to identify which program is using a specific port.

How to check open ports using CMD

If you want to check the port on your computer, use the Windows command prompt and CMD command netstat -ano. Windows will show you all currently existing network connections with open ports or open. Listening ports that are not currently making any connections. The command also shows you the PID number, that is, the process ID for the process currently using a port or listening on the port.

How to use netstat -ano to check ports:

Step 1: Open the command prompt as administrator by pressing the Windows shortcut: [Windows] + [R], type “cmd” and press [Ctrl] + [Alt] + [Enter] to confirm.

Step 2: Enter the cmd command netstat -ano to see the current network connection, IP, and associated process ID. Under Status, you’ll see entries like “Established” if there’s a connection to a service, or “Listening” if the port is open, but no connection has been established.

Step 3: To find out which service is using a port and whether you can close the port, look at the task with the corresponding PID in Task Manager.

Note: netstat -ano shows several open ports with “listening” status in the range 49152 to 65535. It’s not necessarily malware that often uses ports in this region, but most internal Windows applications that are available for queries by default.

With the PID, you can determine which process is currently using an open port in Task Manager.

Scroll to Top