public void deleteSocket(MultipleTalkServer server, String ip){
        try {
            for (int i=0; i < server.socket.size()-1; i++){
                if(ip.equals(server.socket.get(i).getName())){
                    server.socket.get(i).close();
                    server.socket.remove(i);
                }
            }
        } catch (Exception err) {
             JOptionPane.showMessageDialog(null, "erro remover usuário da lista", null, JOptionPane.PLAIN_MESSAGE , null);
        }
    }