-
client_ip = request.remote_addr Using request.remote_addr to obtain the client's IP address always returns 172.21.0.1. How can I obtain the real IP address? |
Beta Was this translation helpful? Give feedback.
Answered by
tiangolo
Aug 29, 2024
Replies: 2 comments
-
You would probably need whatever is the termination proxy (maybe something like Traefik) to tell you what's the final user's IP in a header. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
tiangolo
-
delaram@ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You would probably need whatever is the termination proxy (maybe something like Traefik) to tell you what's the final user's IP in a header.