hpxedq
Last Updated: February 25, 2016
·
349
· igosuki

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).