How to check which process is using port

sudo lsof -i :3000

Example output:

COMMAND   PID   USER FD   TYPE DEVICE SIZE/OFF NODE NAME
node    18048 daniel 37u  IPv4 236413      0t0  TCP *:hbci (LISTEN)