How to check if a TCP port is already in use or reserved to a different job/STC