Merge "check all active ports" into tm-dev