Sheffield Wednesday will travel to Bradford in the Johnstone's Paint Trophy first round, while Exeter host Plymouth in a Devon derby.
Wednesday's Steel City rivals Sheffield United have also been handed an away tie, at former Blade Paul Peschisolido's Burton Albion.
Northern Section: Scunthorpe v Hartlepool, Bradford v Sheffield Wednesday, Northampton v Huddersfield, Burton v Sheffield United, Bury v Crewe, Tranmere v Port Vale, Walsall v Shrewsbury, Accrington v Carlisle.
Southern Section: MK Dons v Brentford, Colchester v Barnet, Leyton Orient v Dagenham and Redbridge, Southend v Crawley, Bournemouth v Hereford, Cheltenham v Torquay, Exeter v Plymouth, Wycombe v Bristol Rovers.
Ties to be played week commencing Monday, August 29.