Montenegro, and Bosnia and Herzegovina are close to Dubrovnik. You can visit any of these countries on a day trip from Dubrovnik. It's also possible to visit Albania, but the trip is quite long (around 8 hours one way).