Situated due east of Mysore , Srirangapatnam was the site of the battles against the Muslim ruler Tipu Sultan in the 1790s , in which the British gained control of the peninsula .
Srirangapatnam lies due east of the Mysore area .