codrington was promoted to the rank of rear admiral (of the blue) on 4 june 1814, while he was serving off the coast of north america as captain of the fleet to vice admiral sir alexander cochrane during the operations against washington, baltimore and new orleans during the war of 1812. in recognition of this service, he was made a knight commander of the order of the bath in 1815. he became a rear admiral of the red on 12 august 1819, and then a vice admiral on 10 july 1821. he was also elected a fellow of the royal society in february 1822.