Find out which process is listening on a port

I needed to find out which process is listening on a port the other day and a quick search on SO showed me the way and all you need is to run:

netstat –aon | find /i "listening"

and you will get a list of the ports and the PID of the process listening on that port:

image 

Sweet!

 

Learn to build Production-Ready Serverless applications

Want to learn how to build Serverless applications and follow best practices? Subscribe to my newsletter and join over 3,000 AWS & Serverless enthusiasts who have signed up already.
As a BONUS, you will receive early access and discount for my new AppSync course.

1 thought on “Find out which process is listening on a port”

  1. cmd: netstat -an | findstr portnumber
    unix: ps -ef | grep portnumber | grep LIST
    unix: ps -ef | grep protnumber | grep EST

Leave a Comment

Your email address will not be published.