I have tried using this:
ip_address=str(request.META.get('HTTP_X_FORWARDED_FOR'))
But it always return None. Also I have tried this:
ip_address=request.META.get('CF-Connecting-IP', request.META.get('REMOTE_ADDR'))
But it always return 127.0.0.1. I need client side ip address, not the remote ip address. Any help would be appreciated. I need the ipv4 address like this.