Get IP address from request object