Find a lost process bound to a port
Integration bugs with IDEs, unclean shutdowns or sleeps often make some programs lose their links with applications they have launched.
To retrieve a running program on any posix terminal use :
lsof -i :port
This will tell you the pid of the program connected to that socket and you can then kill it with sigterm (kill -9 or -15).
Written by Guillaume Balaine
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#