retry giving a dynamic port