Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • 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