List all processes holding a specific port

How to list all processes holding a specific port on Linux and windows via command line

Let's find all processes pid using port 80 on linux and windows:
  • On Linux

    lsof -i:80
  • On Windows

    netstat -aon | findstr :80

Filed under

Related articles

Level up your Tech Career with DjamgaTech PRO

Download the DjamgaTech PRO App on the Apple App Store to access hundreds of interactive prep questions, flashcards, and quizzes cleanly without ads.

Advertisement
Djamgatech PRO App
Download DjamgaTech PRO on the App Store 🚀

← All articles