The Governor of Western Australia , James Stirling , named the city Albany in 1832 after Prince Frederick , Duke of York and Albany , the second son of King George III . It is named after Prince Frederick , Duke of York and Albany , and son of King George III .