She then travelled through the Suez Canal to Aden and Bombay, where she was engaged in escorting troopships. As part of the British Pacific Fleet she was assigned the pennant number D25, she acted as Guard ship off Yokohama Bay on VJ Day, whilst the peace treaty was being signed aboard the US battleship . Shortly after VJ Day, "Undaunted" sailed into Sydney, Australia, flying the flags of Japan, Germany and Italy. She also flew the flags of France, United States, China and Poland, as well as the personal flag of Dwight D. Eisenhower. One officer explained "We were feeling exuberant and flew the lot."