check input parameters for route hosts/ports