Wrexham will travel to National League rivals Harrogate in the Emirates FA Cup on Saturday, October 20.
The Dragons are currently fourth in Vanarama National League football, one place and one point behind promotion rivals Harrogate Town.
Yorkshire club Harrogate were promoted last season and have, along with Wrexham, made an excellent start to the season.
Manager Sam Ricketts, who takes his Wrexham team to play Dagenham and Redbridge in Essex this Saturday, says: “The draw could have been a little bit kinder to us.
“But we will go there and, like every game we go into, we aim to win.
“If we are going to have a run we must beat some good teams along the way and Harrogate are that.
“We played them away (0-0) and their goalkeeper (James Belshaw) was man of the match. That’s why we came away with the draw as opposed to the victory.
“Everybody knows what to expect and we will go there fully prepared trying to start a cup run.
“It can be a fantastic journey for players and supporters alike, an opportunity to put Wrexham on the map even more than what it is already.
“It has been a few years since Wrexham made progress through this qualifying round
Victory at manager Simon Weaver’s Harrogate’s Wetherby Road stadium would see Wrexham reach the FA Cup first round proper for the first time since 2014-15.
Winchester City, who put Merthyr Town out of the FA Cup when they won 4-1 at the MetCoaches Stadium, have been draw against National League Torquay United in the fourth qualifying round.
Merthyr’s scheduled EvoStik Southern League clash with Poole Town at home last weekend was postponed because of the Dorset club’s tie at Horsham and they face a replay this evening (Tuesday).
The winners of Poole v Horsham in their replay will take on Bostik Premier Division Haringey Borough and earn £15,000 in prize money.
Merthyr travel to play Staines Town this Saturday, while their home clash with Poole has been rearranged for Tuesday, November 13 (7.45pm).
The Martyrs also have a League Cup tie at Slimbridge tomorrow (Wednesday) evening. That was rearranged from last week because of the Gloucestershire teams FA Trophy replay.
Full Emirates FA Cup fourth qualifying round draw:
Cleethorpes Town or Guiseley v Stourbridge
Warrington Town v FC Halifax Town
Chorley v Barrow
Hartlepool United v Workington or Kidsgrove Athletic
AFC Fylde v Chesterfield
Southport v Ashton United
Blyth Spartans v York City
Harrogate Town v Wrexham
Dunston UTS v Gateshead
Stockport County v Altrincham
Marine v Salford City
Witton Albion v Soihull Moors
Alfreton Town v St Neots Town or Coalville Town
Woking v Welling United
Hitchin Town v Leatherhead or Hanwell Town
Chippenham Town or Hendon v Maidenhead United
Eastbourne Borough v Slough Town or Bristol Manor Farm
Hemel Hemsptead Town v Oxford City
Weston Super Mare v Bath City
Boreham Wood v Daggenham & Redbridge
Tiverton Town or Metropolitan Police v Havant & Waterlooville
Gloucester City or Dorking Wanderers v Bromley
Aldershot Town v Kettering Town
Torquay United v Winchester City
Billericay Town v Taunton Town or St Albans City
Eastleigh v Hampton & Richmond Borough
Wealdstone v Sutton United
Ebbsfleet United v Worthing
Maidstone United v Leyton Orient
Haringay Borough v Horsham or Poole Town
Barnet v Braintree Town
Concord Rangers v Dover Athletic
Matches are due to be played on Saturday, 20 October – but full details will be confirmed shortly.