title: unable to get remote addr request.META ['REMOTE_ADDR'] not working
body: <p>hi 
  i am unable to get  ip address of the user connecting to my site under django 1.1.1. </p>
  
  <pre><code>ip_address=request.META['REMOTE_ADDR']
  </code></pre>
  
  <p>em using python 2.6 django 1.1.1 under ubuntu 10.10</p>
  
  <p>i have also installed the middle ware and tried this method also </p>
  
  <pre><code>'django.middleware.http.SetRemoteAddrFromForwardedFor'
  
  
  
  try:
     ip_address=request.META['HTTP_X_FORWARDED_FOR']
  except KeyError:
      pass
  else:
      # HTTP_X_FORWARDED_FOR can be a comma-separated list of IPs.
      # Take just the first one.
      ip_address = ip_address.split(",")[0]
      request.META['REMOTE_ADDR'] = ip_address
  </code></pre>
  
  <p>and in the templates i also tried to get IP using  <code>{{ request.REMOTE_ADDR }}</code>
  but unable to get the  IP 
  what will be the reason for this 
  any help wil be greatly appreaciated thanks</p>