Hi!
Is there a way to retrieve the port number assigned to the ScSSHChannel-s listening address when Remote=False and SourcePort=0?
When SourcePort=0 the OS should assign a free port dinamicaly to the bind address (seemingly, this works as excepted). The getsocketname API could retrieve the assigned port number, but for that the socket handle is needed.
Please find me a soultion to retrive the port number, because I have to start multiple clients in the same computer, and can not hard code the port into the prgram. Or do you have any other suggestions?
Best regards,
Peter