<P> James's wife was devoted to him and influenced many of his decisions . Even so, he kept mistresses, including Arabella Churchill and Catherine Sedley, and was reputed to be "the most unguarded ogler of his time ." Anne Hyde died in 1671 . </P> <P> After the Restoration, James was confirmed as Lord High Admiral, an office that carried with it the subsidiary appointments of Governor of Portsmouth and Lord Warden of the Cinque Ports . James commanded the Royal Navy during the Second (1665--1667) and Third Anglo - Dutch Wars (1672--1674). Following the raid on the Medway in 1667, James oversaw the survey and re-fortification of the southern coast . The office of Lord High Admiral, combined with his revenue from post office and wine tariffs (granted him by Charles upon his restoration) gave James enough money to keep a sizeable court household . </P> <P> In 1664, Charles granted American territory between the Delaware and Connecticut rivers to James . Following its capture by the English the former Dutch territory of New Netherland and its principal port, New Amsterdam, were named the Province and City of New York in James's honour . After the founding, the duke gave part of the colony to proprietors George Carteret and John Berkeley . Fort Orange, 240 kilometres (150 mi) north on the Hudson River, was renamed Albany after James's Scottish title . In 1683, he became the governor of the Hudson's Bay Company, but did not take an active role in its governance . James also headed the Royal African Company, a slave trading company . </P> <P> In September 1666, his brother Charles put him in charge of firefighting operations in the Great Fire of London, in the absence of action by Lord Mayor Thomas Bloodworth . This was not a political office, but his actions and leadership were noteworthy . "The Duke of York hath won the hearts of the people with his continual and indefatigable pains day and night in helping to quench the Fire", wrote a witness in a letter on 8 September . </P>

How did parliament respond to james and charles