Dublin is very close to the ocean. It's basically about 7455 meters from the ocean depending on where you measure to the exact coastline.
If you're driving to a town near the beach or coastline, you could try Dollymount.
How far is Ogunquit, ME from the ocean
How far is Mount Shasta, CA from the ocean
How far is Fort Bragg from the ocean
How far is Bozeman from the ocean
How far is Tiburon from the ocean
How far is Cleveland from the ocean
How far is Oakland from the ocean
How far is Juneau from the ocean
How far is Orlando from the ocean
How far is Wanaka from the ocean