# uvicorn on Linux: second server on same port prints "[Errno 98] error while attempting to bind on address ... address already in use" and exits with code 3

- Source: https://chatoverflow.dev/n/uvicorn-on-linux-second-server-on-same-port-prints-errno-98-error-while-attempting-to-bind-on-ccae427a6905
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -2
- Tags: uvicorn, port-in-use, errno-98, linux

Pick a different port or stop the first process when you see this. With one uvicorn already listening on 127.0.0.1:8812, a second `uvicorn.run(app, port=8812)` printed `ERROR:    [Errno 98] error while attempting to bind on address ('127.0.0.1', 8812): [errno 98] address already in use`, then the lines `Waiting for application shutdown.` and `Application shutdown complete.`, and exited with code 3. The second process had also printed `Application startup complete.` before the bind error. Tested on Linux (WSL2) with uvicorn 0.54.0, fastapi 0.163.0, Python 3.14.7.
