Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mknparreira/bd447c092b620e443c76dccf9aea6c9d to your computer and use it in GitHub Desktop.
Save mknparreira/bd447c092b620e443c76dccf9aea6c9d to your computer and use it in GitHub Desktop.
Terminal | How to discover what is running on the some port

If you want to check if something is running at some port, you may run the following command::

Get-Process -Id (Get-NetTCPConnection -LocalPort 3306).OwningProcess

If an error is returned, then, there is nothing to run on the given port. Otherwise, it displays what the program/service is running.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment