only consider 1-to-N or N-to-1 connections as possible handshake ports