Blackpool dumped LDV Vans Trophy holders Wrexham out in the first round after coming from behind in extra time.
The home side went ahead in the second minute when Matt Blinkhorn capitalised on a horrendous defensive error.
Wrexham's Mark Jones scored twice in a minute to turn the game on its head 15 minutes from time, only for Mark McGregor to respond with a late volley.
Darren Ferguson put Wrexham ahead again in extra time, but Keith Southern and Scott Vernon ensured a dramatic win.
Blackpool: Pogliacomi, Coid (Grayson 29), McGregor, Clarke, Armstrong, Wiles, Southern, Doolan, Burns (Prendergast 41), Blinkhorn, Wright (Vernon 65).
Subs Not Used: Jones, Butler.
Booked: Wright, Doolan, Southern.
Goals: Blinkhorn 2, McGregor 84, Southern 99, Vernon 104.
Wrexham: Ingham, Lawrence (Mackin 90), Bayliss (Foy 73), Holt, Spender (McEvilly 62), Ferguson, Danny Williams, Mark Jones, Smith, Walters, Bennett.
Subs Not Used: Michael Jones, Mike Williams.
Goals: Mark Jones 77, 78, Ferguson 96.
Ref: C Oliver (Northumberland).