Port specification and scan order