detects port in use