Skip to content

Instantly share code, notes, and snippets.

@CraftyFella
Created April 25, 2014 09:02
Show Gist options
  • Save CraftyFella/11282843 to your computer and use it in GitHub Desktop.
Save CraftyFella/11282843 to your computer and use it in GitHub Desktop.
Find out which service is using a port on windows box.
# Show me a list of all processes. If they are a service give their name.
# Pipe to findstr which filter out anything that is "N/A" (I.e. only show services)
tasklist /SVC | findstr /V /C:"N/A"
# show me all listening and sending sockets
# -o show me their pid
netstat -a -o | findstr 4260
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment