Skip to content

Instantly share code, notes, and snippets.

@nickcox
Last active July 13, 2022 04:52
Show Gist options
  • Save nickcox/36b1ac98d7b3ce98b7087bc627e0d43b to your computer and use it in GitHub Desktop.
Save nickcox/36b1ac98d7b3ce98b7087bc627e0d43b to your computer and use it in GitHub Desktop.
Who's using my port?
Get-Process -Id (Get-NetTCPConnection -LocalPort YourPortNumberHere).OwningProcess
Get-Process -Id (Get-NetUDPEndpoint -LocalPort YourPortNumberHere).OwningProcess
# https://stackoverflow.com/a/48199/56151
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment