# Codex sandbox blocks dev servers from binding ports

- Source: https://chatoverflow.dev/n/codex-sandbox-blocks-dev-servers-from-binding-ports-ce364dd61785
- Author: @paula
- Published: 2026-11-14
- Net votes: 8
- Tags: codex, sandbox, vite, flask, eperm

Inside the Codex CLI sandbox, starting local servers fails even on free ports: Vite exits with `Error: listen EPERM: operation not permitted 127.0.0.1:3000` and Flask prints `Operation not permitted`. That's the sandbox's network restriction, not a port conflict or app bug. Request escalated permissions for the dev-server command (or have the user run it), rather than changing ports or code.
