more logic for REMOTE_ADDR