How to find out which process is listening on a certain point on my mac. I'm often switching between projects, and have a server from another project running on a port that I now need for another server.
And it looks like Heroku's CLI doesn't always stop all processes correctly when you stop it using ctrl+c
You could add a function to your .bashrc to make this easier:
lsof -n -iTCP:$1 | grep LISTEN
Then (after restarting your terminal or typing source ~/.bashrc) type listening 8080 to find out what process is blocking that port.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.