How to check for used ports on Windows?
Using Command Prompt
- Netstat: This command displays active connections and listening ports.
- Open Command Prompt (you can search for
cmdin the Start menu). - Type
netstat -anoand press Enter. This will list all ports in use along with the process IDs (PIDs) using them. - To find a specific port, you can use
netstat -ano | findstr "PORT_NUMBER", replacingPORT_NUMBERwith the port you’re interested in.
- Open Command Prompt (you can search for
- TCPView: This is a graphical utility from Sysinternals that provides a more detailed view of TCP and UDP endpoints. You need to download it from Microsoft’s website.
Using PowerShell
- Open PowerShell (you can search for
powershellin the Start menu). - Run the following command:
Get-NetTCPConnection | Where-Object { $_.LocalPort -eq PORT_NUMBER }, replacingPORT_NUMBERwith the port you want to check. - Alternatively, you can use
Get-Process -Id (Get-NetTCPConnection -LocalPort PORT_NUMBER).OwningProcessto get more information about the process that’s using the port.
Using Resource Monitor
- Open Resource Monitor, which can be found by searching in the Start menu or under the “Performance” tab of Task Manager.
- Go to the “Network” tab.
- Look at the “Listening Ports” section to see which ports are in use and by which processes.

I’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms.
I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.
Find Trusted Cardiac Hospitals
Compare heart hospitals by city and services — all in one place.
Explore Hospitals