Skip to content

Instantly share code, notes, and snippets.

@aleguerra05
Created June 27, 2019 16:28
Show Gist options
  • Save aleguerra05/5f4b6fa3c80b2ca940c617f54828b7ce to your computer and use it in GitHub Desktop.
Save aleguerra05/5f4b6fa3c80b2ca940c617f54828b7ce to your computer and use it in GitHub Desktop.
How can you find out which process is listening on a port on Windows?
Get-Process -Id (Get-NetTCPConnection -LocalPort portNumber).OwningProcess
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment