A guest at a gathering in a house armed himself with two knives and stabbed another man in the neck when a row broke out after they had been drinking, it has been alleged.
Peter O'Gorman (51) is all-eged to have inflicted a serious injury on the man, who flagged down a passing ambulance.
The accused was refused bail and remanded in custody at Dublin District Court.
Mr O'Gorman, of no fixed address, is charged with assault causing harm to the man (53).
Det Gda Mark Melbourne objected to bail, citing the nat- ure and seriousness of the allegations.
He told Judge Bryan Smyth that gardai received information from Dublin Fire Brigade that a man and woman had flagged down a passing ambulance on Emmet Road, Inchicore, at 3.36pm on January 9.
The man had a cut to his neck and said he had been stabbed by the accused.
Det Melbourne said he arr- ested Mr O'Gorman on suspicion of assault at Bulfin Court, Inchicore, at 3.45pm.
A woman told gardai she had been in the house with friends including the alleged victim and the defendant.
They were all drinking alcohol and a row broke out between Mr O'Gorman and the alleged victim, the woman had said.
It was alleged that Mr O'Gorman "armed himself with two knives" and stabbed the man in the neck while threatening him.
It was further alleged that the man held shut an internal door to keep the accused from further stabbing him.
He left the house with the woman and they intended to get a taxi to hospital but saw an ambulance and stopped it.
Det Melbourne said the all- eged victim suffered serious injuries, but they were not life-threatening and he was discharged from hospital after treatment.
He received a "substantial laceration to the neck".
It was alleged the weapons were found beside Mr O'Gorman when he was arrested.
Blood was found on one of the knives and both had been sent for technical examination.
It was alleged the accused stated after caution: "Why did she bring him here? He des- erved it. He shouldn't be here."
Det Melbourne said Mr O'Gorman stated he had been drinking alcohol and could not remember the incident.