Chosen Solution

I just received a water damaged iPhone 7 Plus. I took out the logic board, cleaned it with some alcohol. When powered on, the device goes into a boot loop. I put it into DFU mode, tried to restore it with iTunes, however I got a 4013 error message. I read online that a faulty lightning connector assembly can cause this issue. Is there any way to tell whether the lightning connector is bad?

If your PC is recognising the phone I doubt it would be a faulty lightning connector. The three main reasons for the iPhone 7 to have this error are faulty CPU, NAND or baseband. You will need to start taking measurements on those lines. It is a good idea to do a visual exam first and concentrate where the water went.