how to select com port or know com port number

am new using com port with these box please when unlocking samsung lg, htc etc how will i know the com port .Thanks