2 TScSSHChannel on the same port
Posted: Fri 23 Sep 2022 09:44
Hi,
I use a TScSSHChannel within my TScSSHClient to exchange data with a computer in the same network as the SSH server.
I currently assign a separate port number for each of these channels.
If I accidentally forgive the same port for 2 channels, it creates a second TCP server on the same port and this is also set to LISTENING in Windows.
However (logically) only the first channel is ever used. Why is this happening? I would have expected that I can't create a second channel with the same port.
I use a TScSSHChannel within my TScSSHClient to exchange data with a computer in the same network as the SSH server.
I currently assign a separate port number for each of these channels.
If I accidentally forgive the same port for 2 channels, it creates a second TCP server on the same port and this is also set to LISTENING in Windows.
However (logically) only the first channel is ever used. Why is this happening? I would have expected that I can't create a second channel with the same port.