Refactoring of code, When server is compiled without support of OpenSSL and unsecured connection is used, then server listen on port 12344