FR 4596 then W6 2096 at Barcelona
Porto → Barcelona → Krakow
Timetable, Barcelona time
00:50FR 4596 from Porto at the gate
19:05W6 2096 to Krakow leaves the gate
18 h 15 apart on the timetable
W6 2096 leaves 18 h 15 after FR 4596 arrives on the timetable: more than half a day, so not a connection we count.