Sidharth R
  • Home
  • Posts
  • Journal
  • Home
  • Posts
  • Journal
  • Search
  1. Home
  2. Posts
  3. Kill Any Process Using a Port in Powershell

Kill Any Process Using a Port in Powershell

Updated: 08 Apr 2026 ⚬ Page views: loading...

Recently I wanted to start a server in port 8899 & I got an error telling that some other process is using it.

Here is a one-liner you can use to kill an existing process bound to a port.

POWERSHELL
Stop-Process -Id (Get-NetTCPConnection -LocalPort 8899).OwningProcess -Force

Keep reading

  • Demystifying PowerShell Versions and Editions
  • How to Uninstall the NuGet Package Provider: PowerShell Guide
  • Equivalent of Linux Commands in Powershell
  • Docker Compose Basic

  • Home
  • Posts
  • Journal
  • Quotes
  • Links worth your time
  • About
  • Contact
  • Style guide
  • RSS
© 2026 Sidharth R.
Licensed CC BY-NC-SA 4.0