Having arrived in Ireland, depending on which port they landed, they might have travelled onward by train. The first railway line in Ireland opened 1834 between Dublin and Kingstown (Dun Laoghaire) as part of the Royal Mail route between London and Dublin.
The Great Southern & Western Railway from Dublin to Cork reached Cork in 1849.
There were several other railway lines connecting most regions of Ireland by mid 1850s.
Middleton was a post town. It's only 10 miles from Cork City, so hardly in the middle of nowhere. Investigating the Royal Mail routes in Ireland, England and Wales may be fruitful. There's a book "History of the Mail Routes to Ireland to 1850" by George Ayres. Preferred route was Holyhead to Kingstown (Dun Laoghaire). So if your family could have got to Holyhead, onward travel should have been efficient, although they may have had to change trains.
Articles about the history of Irish transport 18th & 19th centuries:
"Ireland's time-space revolution" History Ireland website.
"Charles Bianconi and the Transport Revolution 1800-1875" The Irish Story website.
County Cork was well-supplied with army barracks. Rapid movement was vital. (1798 Rising and French invasion emphasised that.) Royal Engineers were stationed on one of the islands at Queenstown (Cobh). They surveyed and mapped Ireland in detail during first half of 19thC.