Skip to content

Local Server Not Accessible

Problem

After closing the browser tab or terminal window, the local documentation website became inaccessible.

Opening:

http://127.0.0.1:8000

returned no response.


Root Cause

MkDocs creates a temporary local development server that only runs while the serve command remains active in the terminal.

Closing the terminal stops the server completely.


Solution

The server was restarted using:

python -m mkdocs serve --livereload

Once the server was running again, the local documentation website became accessible immediately.