bind fails for localhost on system without IPv6 DNS #1968
Answered
by
martin-schulze-e2m
bertsky
asked this question in
Potential Issue
-
Probably a regression from #827: If I do echo 'from starlette.applications import Starlette; app = Starlette()' > server.py
uvicorn --host localhost --port 7000 server:app that yields:
The system in question does not resolve > host localhost
localhost.localdomain has address 127.0.0.1
> host -6 localhost
;; connection timed out; no servers could be reached Version is |
Beta Was this translation helpful? Give feedback.
Answered by
martin-schulze-e2m
Aug 20, 2025
Replies: 1 comment 1 reply
-
Also seeing this in a Docker container without IPv6. Version is |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Still seems to be an issue in docker with
uvicorn 0.30.6 with CPython 3.11.6 on Linux
. We found that docker (pre v26.0) has a bug regarding IPv6.