FastAPI (starlette) get client real IP
FastAPI (starlette) get client real IP Question: I have an API on FastAPI and i need to get the client real IP address when he request my page. I’m ty to use starlette Request. But it returns my server IP, not client remote IP. My code: @app.post(‘/my-endpoint’) async def my_endpoint(stats: Stats, request: Request): ip = …
Total answers: 11