Add some port validation to the remote command