Home > Back-end >  How can I determine which localhost port is running?
How can I determine which localhost port is running?

Time:05-30

I just find out that when I simply type 'localhost' in the url, the browser displays a message from a local backend project.

I'm trying to stop this process.

I was sure that to have started this server on port 3001 but when I try to kill it , it says that there is no process running on this port.

I tried 8080 as well, but the message is still displayed.

How can i determine which port is running? How can I stop the process?

CodePudding user response:

You could use lsof:

lsof -i @localhost
  • Related