Gillingham will play either Barrow or Gloucester City in the first round of this season's Emirates FA Cup.
The draw was made on Monday night and will see Gareth Ainsworth's side welcome a non-league outfit to ME7.
A date for the fixture will follow in due course. Barrow and Gloucester will contest their replay on Tuesday night having drawn 0-0 at the weekend.
The full draw is as follows:
Dover Athletic v Wealdstone
Mansfield Town v Macclesfield or Anstey Nomads
Huddersfield Town v Exeter City
Luton Town v Chesham United or Forest Green Rovers
Bristol Rovers v Cambridge United
Oldham Athletic v Sheffield Wednesday
Kidderminster Harriers v Doncaster Rovers
Leyton Orient v Harborough Town
Accrington Stanley v Wycombe Wanderers
MK Dons v Swindon Town
Newport County v Walsall
Bromley v Rotherham United
Barnet v Tranmere Rovers
Fleetwood Town v Rochdale
Barnsley v Aldershot or Tadley Calleva
Plymouth Parkway v Berkhamsted
Chesterfield v Leatherhead or Yeovil
Gillingham v Barrow or Gloucester City
Bury or Harrogate Town v AFC Fylde
Crewe Alexandra v AFC Wimbledon
Oxford United v Stevenage
Burton Albion v AFC Rushden and Diamonds
Bedford Town or Cray Wanderers v Stockport County
Port Vale v Scunthorpe United
Cheltenham Town v FC Halifax Town
Colchester United v Chorley or Worcester City
Eastleigh v Shrewsbury Town
Peterborough United v Reading
Wimborne Town v Crawley Town
Plymouth Argyle v Spalding United or Alvechurch
Hornchurch v Blackpool
Guiseley v Sutton United
Gateshead or Stafford Rangers v Grimsby Town
Oxford City v Leicester City
Bradford City v Marine
York City v Northampton Town
Altrincham or FC United of Manchester v Notts County
Boreham Wood v Wigan Athletic
Carlisle United v Salford City
Salisbury v Sholing
Ties are due to be played the weekend of November 6-9.