Having looked second best for most of the first half and finding themselves two goals adrift at the break, it was nothing short of a transformation in the second period.
Goals from Sam Pilkington, Niall Freeman and Brandon Burrows turned the game on its head.
The Reds welcome back both Matty Sargent and Steffan Bulkeley, who have been away on international duty with the Wales U17, but Doug Tharme missed out as he is over the age limit for this competition.
Niall Freeman took a free kick from 25-yards out on six minutes, but his direct effort also cleared the Gateshead cross bar.
Three minutes later and Freeman worked space for himself on the left of goal, but his shot was blocked by the Gateshead right back Jack Halpin.
The Heed replied on 11 minutes with a jinking run and shot from midfielder Dan Ord, whose effort skimmed off the top of the Wrexham woodwork.
A Gateshead free kick from the corner of the Wrexham box was held low down by keeper Dane Rigby.
The home side took the lead on 21 minutes, when a quick free kick from their own half saw home striker Lewis McGeoch beat the offside trap and with no one challenging him, lob the advancing Wrexham keeper from the edge of the penalty area.
Coming up to the half hour mark and Heed striker Liam Carrick hit a shot from a tight angle that was into the side netting, as the locals had the upper hand in terms of attacking, if not possession.
On 36 minutes, the Reds failed to clear a free kick delivered into their box and winger Harry Outterside fired well over for the Heed from 16-yards out.
Three minutes later and the home side double their lead, in somewhat controversial circumstances.
Sam Pilkington looked to be fouled in the Gateshead half, but the referee waved play on, Ben Garrity fired the loose ball up field and his pinpoint pass found the sprinting McGeoch, who in turn beat the offside trap. He raced to the line before crossing low into the box, where fellow striker Liam Carrick gave himself space to fire low into the corner of the Wrexham net from eight yards.
A few minutes in the second half and Brandon Burrows crossed into the box, where Jack Thorn’s header at the back post stuck the crossbar, the ball came back into play and Freeman fired the rebound over the target.
On 52 minutes and Thorn again went close with another header at the back post, but this one is narrowly wide from Pilkington's cross.
Then the pressure paid off when Thorn sent in a long diagonal cross from the left and Pilkington got in at the back post to beat his marker to head home and kick-start the revival.
A minute later and the leveller arrived courtesy of a poor back pass by Gateshead, that Freeman latched onto, he drew the keeper, slipped the ball round him and inside the far post – a cool finish!
A booking for skipper Scott McHarrie on 58 minutes, following a late challenge in midfield.
Then on the hour and Wrexham took the lead through Brandon Burrows, who fired in a vicious shot from 25-yards that took a deflection to wrong foot keeper Logan.
The home side made their first substitution a minute later, with Joe Arnott on for defender Levin Riley. Then Owen Brearton came on for Carrick after 68 minutes.
A booking for sub Brearton, after he caught Burrows a sore own in the centre circle with 74 minutes on the clock.
More Wrexham pressure saw the ball fell kindly in the box for Bulkeley, but the striker couldn’t quite make proper contact and only stabbed at it.
Cameron McGregor replaced Bulkeley on 77minutes and then Barratt was yellow carded for a tough challenge on the half way line with six minutes left.
As we went into added time Matty Sargent replaced Burrows.
Finally the whistle went to end the game after 90+6!
Gateshead: Ross Logan, Jack Halpin, Dan Stephenson, Levin Riley (Joe Arnott 61), Dan Bennett (Innocent Chirinda 72), Ben Garrity, Harry Outterside, Dan Ord, Lewis McGeoch, Liam Carrick (Owen Brearton 68), Dan Cramston.
Subs: Ryan Lumsden, Evan Suddick.
Wrexham: Dane Rigby, Dan Stephens, Ben Barratt, Bobby Beaumont, Ryan Williams, Sam Pilkington, Scott McHarrie, Brandon Burrows (Matty Sargent 90+3), Jack Thorn, Niall Freeman, Steffan Bulkeley (Cameron McGregor 77).
Subs: Owen Kirkham, Dylan Allshorn.
Referee: P Guard (Tyneside)
Gateshead: Brearton (74, foul)
Wrexham: McHarrie (58, foul), Barratt (84, foul)