Should we perhaps add some range checking here? To make it fail early in case the user specifies an OOB port?