Dubrovnik is very close to the ocean. It's basically about 5668 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 Zaton (Dubrovnik-Neretva).
How far is Mountain View from the ocean
How far is Portland, ME from the ocean
How far is Pacifica from the ocean
How far is Tallahassee from the ocean
How far is Morgantown from the ocean
How far is Hood River from the ocean
How far is Portland from the ocean
How far is Mendocino from the ocean
How far is Dayton from the ocean
How far is Mykonos from the ocean