private boolean startServerSocket() {
        try {
            serverSocket = new ServerSocket(port);
            listener.connectionSuccessful();
            serverSocket.setSoTimeout(SOCKET_TIMEOUT);
            return true;
        } catch (IOException e) {
            listener.onConnectionFailed(null, port, e);
            return false;
        }
    }