Port troubleshooting guides
Step-by-step fixes for "port already in use" errors on Windows, macOS and Linux: find the process holding a port, stop it safely, or move your app to another port.
How to kill the process using a port on WindowsFind which process is using a port on Windows and stop it with netstat and taskkill, PowerShell, or portfind. Includes fixes for "Access is denied" and PID 4.How to kill the process using a port on LinuxFind and stop the process listening on a port on Linux with ss, lsof or fuser, and what to do when it belongs to root, a systemd service or Docker.How to kill the process using a port on macOSFind what's using a port on a Mac with lsof and stop it with kill. Plus why ports 5000 and 7000 are taken by AirPlay Receiver, and how to free them.Fix "Error: listen EADDRINUSE: address already in use" in Node.jsWhat "listen EADDRINUSE: address already in use :::3000" means in Node.js, how to free the port on Windows, macOS and Linux, and how to stop it coming back.Fix Docker "port is already allocated" and "address already in use"Why docker run and docker compose fail with "Bind for 0.0.0.0:5432 failed: port is already allocated", how to find what holds the port, and how to fix it."Port 3000 is already in use": fix it for React, Next.js, Vite and moreFree port 3000, 5173 or 8080 when React, Next.js, Vite, Express, Django, Rails or Spring Boot says the port is already in use, or run on another port.