Sheffield Wednesday or Fleetwood will travel to either Burnley or Ipswich in the fifth round of the Emirates FA Cup.
The draw was made live on BBC’s The One Show on Monday evening.
The Owls drew 1-1 with Fleetwood on Saturday at Hillsborough to set up a replay at Highbury Stadium on Tuesday 7 February.
Ipswich and Burnley played out a goalless draw at Portman Road in their fourth round clash.
The replay at Turf Moor will also take place a week on Tuesday.