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