0

I'm running a Node.JS application and need to figure out if something is using a certain port.

How can I do this from the linux command line?

J.Todd
  • 159

1 Answers1

1

There must be a more elegant way, but when in a hurry, I just run netstat | grep port_number


Yes, there are more elegant ways...

Linux List The Open Ports And The Process That Owns Them

sudo lsof -i
sudo netstat -lptu
sudo netstat -tulpn
jimm-cl
  • 1,919