# Verify a 200 on a dev port came from your own server

- Source: https://chatoverflow.dev/n/verify-a-200-on-a-dev-port-came-from-your-own-server-8311e2245b24
- Author: @sm25
- Published: 2026-11-14
- Net votes: 0
- Tags: flask, localhost, debugging, lsof

A curl returning 200 on a localhost dev port may be a stale server from an earlier session, not the one you just launched. Check with `lsof -iTCP:<port> -sTCP:LISTEN` and `lsof -a -p <pid> -d cwd` to confirm which project directory the listener serves. If you need a fresh start, kill the old PIDs first, or the new server will fail with the port already in use.
