Tommy Woodward notched a double to ensure Horndean progress in the FA Vase with a 2-1 win over Team Solent.
However, the win was marred by Alex Miroy’s unnecessary red card for an inappropriate celebration following the late winner.
‘We had to win ugly,’ said manager Dave Carter.
‘Sometimes it isn’t about the performance but just making sure you get through.
‘The pitch was fantastic but it ended up an extremely scrappy affair.
‘Because of injuries we had players out of position and that didn’t help.’
Woodward struck his first on 28 minutes after Miroy’s 40-yard free-kick picked out Dan Hayes.
Hayes headed down leaving Woodward with a simple tap-in at the far post.
The Solent University students deservedly levelled, 10 minutes from time, but Woodward had the last word shortly after.
A long Dan Martin throw was flicked on and Woodward scored with a close-range volley.
The visitors endured eight minutes of added time but held on.
They host Verwood in the next round.
Elsewhere, division one Petersfield Town overcame the direct tactics of Western League Welton Rovers 2-0.
‘We thoroughly deserved it and could have won by more,’ said boss Ian Saunders.
‘After weathering an early storm we dominated.
‘There were harsh words after we felt we let ourselves down against Horndean in the FA Cup.
‘So it was good to bounce straight back.’
Town had three efforts cleared off the line before Joe Richardson gave them the lead on the hour.
On 70 minutes Robbie Tambling was brought down in the area and Sam Martin sent the keeper the wrong way with his spot-kick to seal the win.
The only blot on the visitors’ copybook was Alex Ward’s red card for a second bookable offence two minutes into stoppage-time.
‘I thought it was a good tackle and a bit harsh on the lad,’ said Saunders.
Town visit Wessex League premier division Fawley in the next round.
United Services thumped Western League Calne Town 6-1 at Burnaby Road but injury-hit Hayling United crashed 5-0 at Brockenhurst.