Updates `IP` function to check for `HTTP_X_FORWARDED_FOR`