how to connect to port 5000 while your application listens on port 3000. code example
Example 1: npm port already in use
$ lsof -i tcp:3000
$ kill -9 PID
Example 2: stop npm running on port 3000
netstat -ano | findstr :3000
taskkill /F /PID PID_of_port