Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sathish-io/9313465 to your computer and use it in GitHub Desktop.
Save sathish-io/9313465 to your computer and use it in GitHub Desktop.
Find process listening at port 8080 on Mac OS X
Here is the command to find out the process # that is listening at the givne port(say 8080) in on Mac OS X,
lsof -n -i4TCP:8080 | grep LISTEN
this will return below sample o/p,
java 41038 user1 54u IPv6 0x68e4c014dcuy8y0 0t0 TCP *:http-alt (LISTEN)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment