public void run() {
        try {
            this.serverSocket = new ServerSocket(this.port);
            this.listening = true;
            debug("listening");
            Lobby lobby = new Lobby(this, Main.sql);

            while (this.listening) {
                Socket socket = this.serverSocket.accept();
                if(!Main.getip(socket).equals("127.0.0.1")){
                debug("client connection from " + socket.getRemoteSocketAddress());
                ChannelServerConnection socketConnection = new ChannelServerConnection(socket,this,lobby, Main.sql);
                clientConnections.add(socketConnection);
                socketConnection.start();
                }
            };
        }
        catch (Exception e) {
            debug("Exception (run): " + e.getMessage());
        }
    }