Add some port validation to the remote command

Will change it :)