Skip to content
nerdsid_
  • Posts
  • Journal

Navigation

  • Posts
  • Journal
Posts

Kill any process using a port in PowerShell

Updated: 08 Apr 2026

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
Tags: powershell windows networking troubleshooting … views

Keep reading

  • Deploy an app by hand, then with Docker Compose
  • Docker environment variables and networking
  • Demystifying PowerShell versions and editions
  • How to uninstall the NuGet package provider: PowerShell guide

  • Home
  • Posts
  • Journal
  • Labs
  • Snippets
  • Quotes
  • Links worth your time
  • About
  • Contact
  • Style guide
  • RSS

© 2026 Sidharth R. · Licensed CC BY-NC-SA 4.0