You can use the mountain train in darjeeling on your way from Ilam to Darjeeling with public transport.