If a factory reset does not do it I would try firmware. Try a newer firmware and don't check keep settings. It should go back on ssh when doing this. (Firmware updates can go wrong if loss of power, etc, etc). But I think firmware is what to look at.
Heck you could clone one of the sd cards on the working ones, change ip after. And that would for sure do it and would keep settings.