IB 2297 then FR 572 at Madrid
Melilla → Madrid → Porto
Timetable, Madrid time
20:55IB 2297 from Melilla at the gatealso QR 5377, VY 5697
14:05FR 572 to Porto leaves the gate
17 h 10 apart on the timetable, overnight
FR 572 leaves 17 h 10 after IB 2297 arrives on the timetable: more than half a day, so not a connection we count.