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
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:
Then (after restarting your terminal or typing
source ~/.bashrc
) typelistening 8080
to find out what process is blocking that port.