Non-league Maidstone will play Sheffield Wednesday or Coventry in the fifth round of the FA Cup.
The National League South club from Kent pulled off one of the great upsets in FA Cup history by winning 2-1 at Ipswich on Saturday.
They will now travel to another Championship side to face the winners of the replay between the Owls and the Sky Blues in the last 16.
Holders Manchester City were drawn away at Luton and Newcastle face a trip to the winners of Monday's tie between Blackburn and Wrexham.
Chelsea or Aston Villa will host Leeds or Plymouth while Brighton travel to Wolves and Bournemouth entertain Championship leaders Leicester.
Liverpool will face Watford or Southampton.
The winners of the replay between Bristol City and Nottingham Forest face Manchester United.
FA Cup fifth-round draw in full:
Blackburn or Wrexham v Newcastle
Chelsea or Aston Villa v Leeds or Plymouth
Bournemouth v Leicester
Liverpool v Watford or Southampton
Bristol City or Nottingham Forest v Manchester United
Wolves v Brighton
Sheffield Wednesday or Coventry v Maidstone
Luton v Manchester City
Ties to be played week of February 26