After paying off "Bellerophon" Warren was appointed to command the 44-gun HMS "President" in September 1810. He was assigned to transport Lucien Bonaparte, Napoleon's brother, and his family from Malta to England, after which he sent to reinforce the British squadrons in the East Indies. He left for the Cape of Good Hope on 31 December 1810, in company with the frigates and . After calling at the Cape, Warren pressed on to the East Indies, and became involved in the operations to capture Java between August and September 1811. On 4 September he was sent into Cirebon to negotiate the surrender of the town to the British. The garrison agreed to surrender, with several important French and Dutch officers falling into British hands. After the surrender of the island to the British on 18 September by General Jan Willem Janssens, Warren accompanied the commander in chief, Vice-Admiral Robert Stopford, back to Britain. He was then appointed to the 74-gun , and commanded her in the Mediterranean from June 1813 until the peace in 1814.