Oldham will host two-times winners Wigan in the Papa John's Trophy round of 16.
Meanwhile, last season's runners-up Tranmere Rovers, or Harrogate Town, will be at home to Carlisle United.
Tranmere were forced to postpone the tie against the Yorkshire side because of ongoing safety issues at Prenton Park caused by Storm Arwen.
Crewe, yet to concede a goal in this season's competition, will host Rotherham and Bolton will visit Hartlepool.
In the southern section, Arsenal and Chelsea's under-21 sides will face each other.
Portsmouth, the 2020 runners-up, or Exeter will be away to Cambridge United.