Opened 9 years ago

Closed 9 years ago

#24864 closed New feature (wontfix)

Django will not listen to same port on IPv4 and IPv6 at the same time

Reported by: Erik Nordstroem Owned by: nobody
Component: Core (Other) Version: 1.8
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

By itself, python3 manage.py runserver 0.0.0.0:8000 works.

By itself, python3 manage.py runserver [::]:8000 works.

But if I try first python3 manage.py runserver 0.0.0.0:8000 and then python3 manage.py runserver[::]:8000, I am told, incorrectly, by the second process that:

Error: That port is already in use.

Same goes if I run python3 manage.py runserver [::]:8000 first followed by python3 manage.py runserver 0.0.0.0:8000; the first process runs but the second process will report:

Error: That port is already in use.

Change History (3)

comment:1 by Tim Graham, 9 years ago

What's your use case for development such that you need to listen to both protocols?

comment:2 by Erik Nordstroem, 9 years ago

@timgraham: For consistency between dev and prod.

comment:3 by Tim Graham, 9 years ago

Component: UncategorizedCore (Other)
Resolution: wontfix
Status: newclosed
Type: UncategorizedNew feature

I think integrating with a more fully featured web server is a better long term solution than trying to enhance the built-in webserver (#21978). This is consistent with the decision about whether or not to add SSL support to runserver.

Note: See TracTickets for help on using tickets.
Back to Top