Answers for "socket port already in use"

1

Error: That port is already in use.

# list the running ports
$ netstat -ltnp
# kill specific port in my case for django 8000. kill using PID
$ kill -9 31434
Posted by: Guest on July-17-2021
1

Port 3000 is already in use.

If this error is in nextjs

in package.json, update scripts:
"dev": "PORT=3001 next dev",

you can choose other port, and also change for start.
Posted by: Guest on July-27-2021

Browse Popular Code Answers by Language