FR 9840 then DJ 6645 at Lisbon
Cologne → Lisbon → Porto
Timetable, Lisbon time
23:30FR 9840 from Cologne at the gate
19:07DJ 6645 to Porto leaves the gate
19 h 37 apart on the timetable, overnight
DJ 6645 leaves 19 h 37 after FR 9840 arrives on the timetable: more than half a day, so not a connection we count.