def default_request_ip_resolver(request):
 return (real_ip(request) or x_forwarded_ip(request) or remote_addr_ip(request))

def default_request_ip_resolver ( request ) : return ( real_ip ( request ) or x_forwarded_ip ( request ) or remote_addr_ip ( request ) )
this is a hybrid request ip resolver that attempts should address most cases .