This is a three step approach:
1: The better you know a language, the easier it becomes to discern between different dialects
2: Listening to music or radio in that dialect, maybe with a local channel in the area where that dialect is spoken
3: Speaking the dialect. Go to a place where native speakers of the dialect gather, i.e. a gym, library, book club etc.