Away tie for Gills if they can overcome Hartlepool in replay.
Gillingham or Hartlepool United will play either Sutton United or Slough Town away in the second round of the Emirates FA Cup.
The teams drew 0-0 at Priestfield on Saturday and a replay will be required at Victoria Park to determine who progresses.
The below ties will be played the weekend of November 30-December 3.
Emirates FA Cup second round draw:
Guiseley v Fleetwood Town
Bury v Luton Town
Wrexham v Newport County
Tranmere/Oxford City v Southport
Southend/Crawley v Barnsley
Shrewsbury/Salford v Scunthorpe United
Solihull Moors v Blackpool
Chesterfield/Billericay v Grimsby Town
Peterborough United v Aldershot/Bradford
Swindon Town v Woking
Maidstone United v Hampton & Richmond/Oldham
Lincoln City v Carlisle United
Morecambe/Halifax v AFC Wimbledon
Plymouth Argyle v Oxford United/Forest Green
Barnet/Bristol Rovers v Stockport
Rochdale v Portsmouth
Walsall v Sunderland
Accrington Stanley v Ebbsfleet/Cheltenham
Mansfield/Charlton v Chorley/Doncaster
Sutton/Slough v Hartlepool/Gillingham
A confirmed date, and ticket information, will be released for our replay in due course.