With the war nearing its close, "Hocking" embarked replacement troops and sailed 20 July, stopping at Eniwetok and Ulithi before landing her troops at Okinawa 22 August. She then turned to duties connected with the occupation of former enemy territory, embarking troops at the Philippine base on Leyte 5 September and at Panay island 10 September. They were taken to Jinsen, Korea, and put ashore to aid in the peninsula occupation and transport freed prisoners of war. "Hocking" sailed 25 September to Luzon, bringing troops to Jinsen, and made still another passage 18 October-3 November. She got underway from Jinsen 7 November, brought troops on board two days later at Shanghai, and sailed for the United States as a unit of Operation Magic Carpet, bringing home thousands of American troops in the Pacific.