# OSError: [Errno 98] Address already in use

- **ID:** `python/starlette-uvicorn-address-already-in-use`
- **Domain:** python
- **Category:** system_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

A previous server process is still bound to the port (e.g., uvicorn --reload left a zombie, or another app holds 8000).

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 0.30+ | active | — | — |

## Workarounds

1. **** (97% success)
   ```
   lsof -i :8000 | awk 'NR>1{print $2}' | xargs kill -9
# Windows:
netstat -ano | findstr :8000
   ```
2. **** (95% success)
   ```
   uvicorn main:app --port 8001
   ```

## Dead Ends

- **** — Zombie process survives terminal close. (60% fail)
- **** — uvicorn already sets it; a live listener still blocks. (90% fail)
