title: FastAPI (starlette) get client real IP
body: <p>I have an API on FastAPI and i need to get the client real IP address when he request my page.</p>
  
  <p>I'm ty to use starlette Request. But it returns my server IP, not client remote IP.</p>
  
  <p>My code:</p>
  
  <pre><code>@app.post('/my-endpoint')
  async def my_endpoint(stats: Stats, request: Request):
      ip = request.client.host
      print(ip)
      return {'status': 1, 'message': 'ok'}
  </code></pre>
  
  <p>What i'm doing wrong? How to get real IP (like in Flask request.remote_addr)?</p>