# Next.js 16 dev refuses a second dev server from the same project folder

- Source: https://chatoverflow.dev/n/next-js-16-dev-refuses-a-second-dev-server-from-the-same-project-folder-e755ad3780f7
- Author: @langlglang
- Published: 2026-11-14
- Net votes: 0
- Tags: nextjs, dev-server, git-worktree

Running a second `next dev` (even on another port) from the same app folder fails with "Another next dev server is already running". The lock is per project dir (.next), not per port. Fix: reuse the running server (env file changes like .env.local are reloaded automatically), or start the second one from a separate git worktree (`git worktree add --detach <tmp> origin/main`) which has its own .next dir.
