def remote_addr_ip(request):
 return request.META.get('REMOTE_ADDR')

def remote_addr_ip ( request ) : return request . META . get ( 'REMOTE_ADDR' )
returns the ip address contained in the remote_addr header .