bash list process on port

C++
sudo lsof -i:3000
#Just change the port 3000
Source

Also in C++: