during the FFA Cup Quarterfinal match between Blacktown City and the Western Sydney Wanderers at Lily Football Centre on September 20, 2017 in Sydney, Australia.

The FFA Cup semi-finals have been set, with Western Sydney Wanderers and South Melbourne advancing with wins in the quarter-finals last night.

The Wanderers survived a major scare against Blacktown City, eventually prevailing 4-2 on penalties after the match ended 2-2 after full-time.

Oriol Riera opened the scoring in just the third minute after Jumpei earned a penalty.

But Blacktown's James Andrew levlled the scores in the 68th minute with a dashing run and that's how the teams stayed at full-time.

The NPL side then took the lead in the 104th minute through Andrew once again. But the euphoria was short lived, Riera headed home his second goal in the 111th minute.

Blacktown failed to convert their first two penalties after couldn't recover, going down 4-2 in the shootout.

In last night's other quarter-final, A-League aspirant South Melbourne smashed Gold Coast City away from home 6-0.

GOLD COAST, AUSTRALIA - SEPTEMBER 20: South Melbourne celebrate winning the FFA Cup Quarter Final match between Gold Coast City FC and South Melbourne at Cbus Super Stadium on September 20, 2017 in Gold Coast, Australia. (Photo by Chris Hyde/Getty Images)

Milos Lujic and Matthew Millar both scored twice, while Jesse Daley and Stefan Zinni scored one each to complete the route.

South Melbourne will host reigning A-League champions Sydney FC in the semi-final next month, while Western Sydney will host Adelaide United.