Find Node.js instance on a server

To track down Nodejs processes running on a server first run

netstat -lt 

to list the ports that applications are listening on. This may show port 31044 is listening, for example.

Next, find the processes that are listening on those ports with

netstat -anp 2> /dev/null | grep :31044

This may return a process id like 7392/server.js – then look up the details of this process id with

ps -ef | grep 7392

to find the location of the Node.js server that is servicing these requests.