feature: added utility Perl function server_port_for_client. thanks doujiang for the patch in #7.