Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>PortNew to Visual Studio Code? Get it now.
Port

Port

Piyush Bhatt

|
19,233 installs
| (3) | Free
Check port availability, get an available port, or kill process on a port from VSCode
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Port Logo

Port helps you check availability of a port, get an available port, or kill running process on a port from Visual Studio Code itself.

Commands

Available port

Check if a port is available or free. If the port is occupied or no port number is provided in input, a random available port is returned based on the Base Port and Highest Port set in the Settings.

Kill process on port

Kill a running process on a port.

Settings

Following settings are available for the extension to get a port within a desirable range,

  • Base Port: Base Port to search an available port from. Defaults to 1024
  • Highest Port: Highest Port to search an available port till. Defaults to 65535

Usage

Here's an example for checking availability of port 4000 and killing the process running on it to make it available.

Check And Kill Port

Acknowledgement

Logo created at LogoMakr.

License

MIT licensed.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft