How to kill a Windows process running on a specific port from command line?

  • 1st open the command prompt as “Run as administrator”.
  • Then paste the below command and hit “Enter”. e.g. Process is running on port 8080.
  • Then kill the task running on that port by using the pid. The command is: