You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi,
i wanna use fastapi on both IPv6 and IPv4 network, but i found that uvicorn api_server:app --host 0.0.0.0 --port 9003 not work on IPv6 and uvicorn api_server:app --host '::' --port 9003 not work on IPv4.
so a creat a bash: uvicorn api_server:app --host 0.0.0.0 --port 9003& uvicorn api_server:app --host '::' --port 9003
for now, its working!
but when i add -- workers 3, the error come out: uvicorn api_server:app --host 0.0.0.0 --port 9003 --workers 3 & uvicorn api_server:app --host '::' --port 9003 --workers 3
one of the process error: ERROR: [Errno 98] Address already in use
anyone know how to run both IPv6 and IPv4 with --workers ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
hi,
i wanna use fastapi on both IPv6 and IPv4 network, but i found that
uvicorn api_server:app --host 0.0.0.0 --port 9003
not work on IPv6 anduvicorn api_server:app --host '::' --port 9003
not work on IPv4.so a creat a bash:
uvicorn api_server:app --host 0.0.0.0 --port 9003&
uvicorn api_server:app --host '::' --port 9003
for now, its working!
but when i add
-- workers 3
, the error come out:uvicorn api_server:app --host 0.0.0.0 --port 9003 --workers 3 &
uvicorn api_server:app --host '::' --port 9003 --workers 3
one of the process error:
ERROR: [Errno 98] Address already in use
anyone know how to run both IPv6 and IPv4 with --workers ?
Beta Was this translation helpful? Give feedback.
All reactions