So I'm not the smartes fellow when it comes to ports and networks and things like that, maybe why I now is in this situation.
So I'm trying to connect to localhost:9000 with a AngularJS project I have, only to get the message that I'm unable to connect.
I've tried the command netstat -an but alas I don't understand any of what it's telling me. Is there a way to force whatever i running on localhost:9000 to stop so that I can use it for something else?
1 Answer
Use lsof to find the process using port 9000.
lsof -i :9000
kill <pid>For Windows, you will want to run netstat -ano | findstr :9000. The number to the far right will be the PID of the process you want to kill.