Ubud is about 15 km from the ocean.
If you're driving to a town near the beach or coastline, you could try Nusa Lembongan.
How far is Hollywood from the ocean
How far is Marina Del Rey from the ocean
How far is Reno from the ocean
How far is Encinitas from the ocean
How far is Astoria from the ocean
How far is Long Beach from the ocean
How far is Medford from the ocean
How far is Eugene from the ocean
How far is Homer from the ocean
How far is Fontainebleau from the ocean