public static void main(String[] args) throws Exception
    {
        ServerSocket se = new ServerSocket(10000);
        while(true)
        {
            Socket s1 = se.accept();
            Socket s2 = se.accept();
            Server serv = new Server();
            serv.setSockets(s1, s2);
            new Thread(serv).start();
        }
    }