Question on port matching

Here is a good one. Or two.