Trying to listen on a port that is in use will fall. With GETSHOPZ we then
try with 0 to get a random free port and use that in the future

On Sat, Jun 14, 2025, 19:30 Donald Russell <[email protected]> wrote:

> I have an ephemeral tcpip server that listens on a specified port.
> Obviously I have to make sure that port doesn’t already have a listener in
> another virtual machine.
>
> Do you have any suggestions on how the exec can obtain an available port
> number to use on TCPLISTEN. Ideally within a specified range. Similar idea
> as passive ftp choosing a port between 10000-10100 (or whatever is
> configured)
>

Reply via email to