More checks for invalid IP before processing.