The Blue Square South side are the lowest-ranked team left in the competition and held Coca-Cola League One leaders Swansea 1-1 at the weekend and are at home to the Welsh side in a replay next week, while Rafael Benitez's side must overcome Luton to reach the last 32.
There are two definite all-Premier League ties, with Manchester United at home to Tottenham or Reading, and Wigan at home to FA Cup holders Chelsea.
Mansfield, 23rd in League Two, are at home to Premier League side Middlesbrough.
Oldham and Huddersfield will face each other at Boundary Park after both teams knocked out Premier League opposition in round three.
The Latics were 1-0 winners away to Everton while Huddersfield saw off Birmingham 2-1 at the Galpharm Stadium.
Arsenal will face the winners of the replay between Stoke and Newcastle at the Emirates Stadium, while Coventry will be hoping to reach the fifth round after being drawn at home to face either Walsall or Millwall.
Portsmouth face Plymouth at Fratton Park while Sheffield United will be looking for another Premier League scalp when they take on either West Ham or Manchester City at Bramall Lane. The Blades beat Bolton 1-0 in the third round.
Swindon or Barnet could take on Premier League side Fulham, unless the Cottagers fall foul of Bristol Rovers in a Memorial Stadium replay next week.
Darren Ferguson's Peterborough side will host Championship opposition with either Charlton or West Brom heading for London Road, with Southampton taking on the winner of the replay between Norwich and Bury.
Derby or Sheffield Wednesday will host Preston, Watford play Wolves in an all-Championship tie at Vicarage Road, Tranmere or Hereford will play Cardiff and Southend host Barnsley.
The ties will be played on the weekend of January 26 and 27.