Derry/Londonderry, a city divided between two countries

Recently I visited a city in the north of Ireland, Derry, and I noticed that there are still a lot of confusion between the "Irelands". The confusion has some reason to be, after all there are three Irelands. And with that, people get quite confused between them. Yes, three! Not one, not two...