The draw has been made for the fourth qualifying round of the FA Cup.
National League teams enter the draw at this stage of the competition with sides potentially just 90 minutes away from a place in the first round proper and potential Football League opposition.
Ebbsfleet, currently bottom of the National League, have been drawn away to Maidstone, who won 1-0 at Herne Bay on Saturday.
Jay Saunders’ Tonbridge Angels will travel to Isthmian Premier Cray Wanderers, managed by former Gills midfielder Neil Smith.
The winners of the replay between Margate and Horsham will host Gorleston, who play in Isthmian North.
Ties are due to be played on Saturday, October 12 with winning teams earning £9,375 in prize money and losing sides collecting £3,125.
FA Cup fourth qualifying round draw (October 12):
Rushall Olympic v Royston Town or Peterborough Sports
Tamworth v Macclesfield
Oldham Athletic v FC Halifax Town
Hartlepool United v Brackley Town
Farsley Celtic v Kettering Town
Altrincham v Solihull Moors
AFC Fylde v Rochdale
Scarborough Athletic v Stockton Town or Chester
Biggleswade v York City
Harborough Town v Bury
Curzon Ashton v Worksop Town or King’s Lynn Town
Gainsborough Trinity v Boston United
Shifnal Town or Hednesford Town v Gateshead
Biggleswade Town or Alfreton Town v Spennymoor Town
Buxton or Kidderminster Harriers v Guiseley
Taunton Town v Maidenhead United
Margate or Horsham v Gorleston
Aldershot Town v Bath City
Eastleigh v Southend United
Chertsey Town v Sutton United
Boreham Wood v Carshalton Athletic
Haringey Borough or Lowestoft Town v Chippenham Town or Weston-super-Mare
Wealdstone v Gosport Borough
Leiston or Hornchurch v Dagenham & Redbridge
Barnet v Chelmsford City
Bishop’s Cleeve or Chesham United v Yeovil Town
Cray Wanderers v Tonbridge Angels
Woking v Slough Town
Forest Green Rovers v Winchester City or Weymouth
Maidstone United v Ebbsfleet United
Plymouth Parkway v Worthing
Braintree Town v Bishop’s Stortford