A drunk father "lost his way" after a work party in Dublin and assaulted a woman at a "random" house, leaving her with scratches on her face.
Blanchardstown District Court heard Gavin McGeown (37) had no idea who the householder was when he went to her home and attacked her.
He travelled from Northern Ireland to work in the capital every day and had no recollection of the incident that happened after he had been drinking with colleagues.
Judge David McHugh said he would treat him leniently but adjourned the case for a victim impact statement.
McGeown, of Castlewellan Road, Newcastle, Co Down, pleaded guilty to assaulting a woman and public intoxication.
The court was told the incident happened at Sycamore Road, Finglas, on April 13.
The accused went to the house and began banging on the door in an intoxicated state. When gardai arrived, they found him out on the road and arrested him.
However, the householder subsequently made a complaint of assault and had scratches on her face and a sore leg.
The accused had no previous convictions of any kind.
His lawyer told the court McGeown had "no idea who the lady is" and the incident had been "random".
It was described as a "very unfortunate situation he found himself in" and he had no recollection of what happened.
The accused was from Northern Ireland and travelled to work in Dublin every day, the court heard.
He had been drinking at a work party and was staying in the Finglas area on the night. The lawyer added that he had "lost his way".
McGeown was not somebody who drank ordinarily and was a family man, the court was told. He was married with five children. McGeown had offered an apology to the victim.
"He's frightened himself more than anything," his lawyer said.
Judge McHugh said he proposed dealing with the case leniently but he had to balance the rights of the victim and needed to know her attitude and "how she is now".
He said she did not need to come to court but could "put it in writing". Having observed the defendant, the judge concluded that he was contrite.