# Port Conflict Handling

## Role
Verify server handles occupied ports correctly.

## Actions
1. Start a process on default port (3333)
2. Try to start autocode serve
3. Check error message
4. Test alternative --port option:
   ```bash
   node dist/index.js serve --port 3334
   ```
5. Verify automatic free port detection
6. Test with multiple instances

## Validation Criteria
- [ ] Clear error message if port occupied
- [ ] --port option works
- [ ] No silent crash
- [ ] Port displayed on startup
- [ ] Graceful EADDRINUSE handling