By default the Windows Task Manager does not show the PID of a process… but this can easily be fixed:
1. Start the Windows task manager. This can be done either via the command line by running “taskmgr”, or by right-clicking on the Windows taskbar and selecting the “Start Task Manager” option. You should see something like this:
2. Now click on the “Processes” tab, select the “View” menu and pick the “Select Columns” option. Ensure that the PID checkbox is ticked.
3. Click OK to go back to the processes tab, and the PID should be visible:
The PID can be used in conjunction with the netstat command to find out which process runs on a given port:
netstat -aon | find “1234” will show which PID is associated with port 1234, then use the Task Manager to lookup the process associated with that PID.