Port::Generator - pick some unused port
my $port_gen = Port::Generator->new(); $port_gen->
minimal range of ports
default 49152
maximal range of ports
default 65535
socket protocol
default tcp
local address
default localhost
try find some unused port from min-max ports range
min
max
each port is check for avialable
Copyright (C) Avast Software.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Jan Seidl <seidl@avast.com>
To install Port::Generator, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Port::Generator
CPAN shell
perl -MCPAN -e shell install Port::Generator
For more information on module installation, please visit the detailed CPAN module installation guide.