Forums

How to log actual client IP in django?

Right now I'm getting the internal IP addresses on request.META['REMOTE_ADDR']. I saw the in flask they can use 'X-Real-IP', but that throws a key exception in django.

We do pass the X-Real-IP header through, but it's in the headers of the request, not META.

ty :-)