find out what process is binding the port 4000 with lsof lsof -i tcp:4000 and use netstat netstat -lnt -p tcp