The closest city to Dublin, Ireland, in a straight line ("as the crow flies") is Holyhead in Wales, United Kingdom.
Holyhead is the main ferry port for Dublin–UK sailings (3.5 hrs). The short distance reflects the narrowness of the Irish Sea at this latitude. Dublin is closer to several UK cities than to Cork (~220 km) or Galway (~190 km) in Ireland.