while (true) { try { Socket s = ss.accept(); ThreadedEchoServer test = new ThreadedEchoServer(s); test.start(); } catch (IOException e) {} }