fix(ted): Check if TCP ports are already in use (closes #1618)