IPC-HDW4231EM-AS dropping connection randomly

What firmware version are you running on the camera?

All my 5231 cameras showed random complete loss of networking when running the March 2018 firmware and have all been stable since rolling back to November 2017 firmware.