Dublin to Gdansk by train
Train is not practical between Dublin and Gdansk because the route crosses open water — there is no continuous rail or road network between island and continental Europe on this corridor.
Consider flying instead, which connects Dublin and Gdansk via international airports.