Last active
July 13, 2022 04:52
-
-
Save nickcox/36b1ac98d7b3ce98b7087bc627e0d43b to your computer and use it in GitHub Desktop.
Who's using my port?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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