The main railway terminal in Lviv is the Lviv-Holovnyi railway station, which is over 120 years old and it handles over one million passengers a month. Today, this is the most likely entry point to the city if you come for a visit.
Warsaw to Lviv
This connection was reintroduced in 2023 after an 18 break, so finally the capital of Poland has direct trains going to Lviv.
The night train from Warsaw departs at 21:45 and arrives at 7:45 in the morning in Lviv. The returning train starts at 8:30 in Lviv and reaches Warsaw at 17:29.