Skip to content

Instantly share code, notes, and snippets.

@skuppa
Last active January 4, 2016 04:48
Show Gist options
  • Save skuppa/8570606 to your computer and use it in GitHub Desktop.
Save skuppa/8570606 to your computer and use it in GitHub Desktop.
Kill the process listening on port 8080

To kill the process using port

kill `netstat -nlp | grep 8080 | awk '{print $7}' | cut -d/ -f1`

To get public ip address using command line

curl -s checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment