Changed TCP open function to allow user to specify port. Defaults to 32000 if port is set to 0 or less