Django runserver returns ERR_CONNECTION_RESET on Windows 11 (no errors in terminal)
I’m learning Django and trying to run my project locally on Windows 11.
When I start the server, it runs without any errors, but when I try to open it in my browser (127.0.0.1:8000
or 127.0.0.1:8001
), I get this message:
Hmmm… can’t reach this page
ERR_CONNECTION_RESET
What I’ve Tried
Running
python manage.py runserver 0.0.0.0:8001
Running from both PowerShell and Command Prompt
Confirmed I’m using a virtual environment (venv) inside my project folder
Checked that my firewall allows Python
Reinstalled Django and Python
Verified no errors show in the terminal
Terminal output:
Watching for file changes with StatReloader
Performing system checks...
System check identified no issues (0 silenced).
Django version 5.2.5, using settings 'StudentERP.settings'
Starting development server at http://0.0.0.0:8001/
Quit the server with CTRL-BREAK.
WARNING: This is a development server. Do not use it in a production setting.
[27/Aug/2025 14:57:56,986] - Broken pipe from ('127.0.0.1', 23878)
[27/Aug/2025 14:57:57,167] - Broken pipe from ('127.0.0.1', 23879)
What I Expected
I expected to see Django’s default “Congratulations!” page at http://127.0.0.1:8001/
.
My Setup
Windows 11 Home, Version 23H2 (Build 22631)
Python 3.11.9 (64-bit) installed from python.org
Django 5.2.5
Running inside VS Code PowerShell terminal
Personal laptop (not managed by any organization)
Question
Why am I getting ERR_CONNECTION_RESET even though Django runs without errors?
Is there something wrong with my local setup or the port binding?