Dubrovnik Airport: Take the Platanus/Croatia Airlines airport shuttle, not an ad-hoc transfer: about 35–40 minutes and roughly €9–10 one way. It runs via the lower cable-car stop at Ploče (the useful stop for Old Town) and on to Gruž main bus station. Timings are tied to flights, so check the day’s schedule. The regular local-bus workaround is fiddly and not worth it with luggage.
Dubrovnik Main Bus Station, Gruž: This is the regional coach terminal, 2.5 km northwest of Old Town—not a rail station; Dubrovnik has no railway. For Pile/Old Town use frequent Libertas 1, 1A or 1B from the main road outside; allow roughly 15–25 minutes depending on traffic. A 24-hour city-bus pass was about €5.31 in the latest evidence.