IB 2297 then LA 1598 at Madrid
Melilla → Madrid → Ibiza
Timetable, Madrid time
20:55IB 2297 from Melilla at the gatealso QR 5377, VY 5697
19:50LA 1598 to Ibiza leaves the gatealso I2 1703, IB 1703, VY 5036, BT 5151, QR 6938, PC 7803
22 h 55 apart on the timetable, overnight
LA 1598 leaves 22 h 55 after IB 2297 arrives on the timetable: more than half a day, so not a connection we count.