Arsenal will travel to Port Vale as Chelsea take a trip to Lincoln in the Carabao Cup third round.
An eye-catching London derby will see Crystal Palace host Millwall, while Tottenham welcome Doncaster to town and Liverpool face Southampton.
Manchester United are not in the draw after a dramatic 12-11 penalty shootout defeat to Grimsby, which saw Ruben Amorim’s side go 2-0 down and force spot-kicks with a last-gasp equaliser.
Grimsby’s reward is a trip to beleaguered Sheffield Wednesday.
Elsewhere, holders Newcastle host Bradford and Brentford take on Aston Villa in an all-Premier League tie.
Carabao Cup third round draw in full
Swansea City vs Nottingham Forest
Huddersfield Town vs Manchester City
Sheffield Wednesday vs Grimsby
Crystal Palace vs Millwall