Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save laszlomiklosik/4004662 to your computer and use it in GitHub Desktop.
Save laszlomiklosik/4004662 to your computer and use it in GitHub Desktop.
Linux which application-process uses a given port
# run:
sudo netstat -lpn |grep :8080
# this will output something like:
tcp6 0 0 :::8080
:::* LISTEN 6782/java
# interpretation:
The process id is 6782
# Mac OS
sudo lsof -nP -i:4200 | grep LISTEN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment