Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

Windows Troubleshooting: Administrator Guide


How to check for used ports on Windows?

Using Command Prompt

  1. Netstat: This command displays active connections and listening ports.
    • Open Command Prompt (you can search for cmd in the Start menu).
    • Type netstat -ano and 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", replacing PORT_NUMBER with the port you’re interested in.
  2. 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 powershell in the Start menu).
  • Run the following command: Get-NetTCPConnection | Where-Object { $_.LocalPort -eq PORT_NUMBER }, replacing PORT_NUMBER with the port you want to check.
  • Alternatively, you can use Get-Process -Id (Get-NetTCPConnection -LocalPort PORT_NUMBER).OwningProcess to get more information about the process that’s using the port.

Using Resource Monitor

  1. Open Resource Monitor, which can be found by searching in the Start menu or under the “Performance” tab of Task Manager.
  2. Go to the “Network” tab.
  3. Look at the “Listening Ports” section to see which ports are in use and by which processes.
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments

Certification Courses

DevOpsSchool has introduced a series of professional certification courses designed to enhance your skills and expertise in cutting-edge technologies and methodologies. Whether you are aiming to excel in development, security, or operations, these certifications provide a comprehensive learning experience. Explore the following programs:

DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.

0
Would love your thoughts, please comment.x
()
x