title: Getting client ip address in flask
body: <p>I am trying to get the client ip at the server Y in the following scenario,</p>
  
  <p>client requests server X which forwards the request to server Y. </p>
  
  <p>And the return flow is Y->X->client</p>
  
  <p>'REMOTE_ADDR' in the http header(actually i get it from request.environ['REMOTE_ADDR']) has the ip of server X. From where can i get the ip of the client at server Y ?</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>X has a public ip. Y is in a private network and is inaccessible outside. Now i am using a client in the same private network and i request X via the public network.</p>
  
  <p>I just want to know if the header already has what i need without manipulating the header at X to include ip of client.</p>