A carer for the elderly was found with a submachine gun in his attic and a revolver under his bedroom floorboards when his home was searched for drugs, it has been alleged.
James Murphy (46) is accused of having the weapons in his home when it was raided by gardaí at the weekend.
Dublin District Court was told he was "more a pawn than a player" who was "used".
Judge Ann Ryan granted him bail and adjourned the case for the directions of the DPP to be given.
Mr Murphy, with an address at Crannogue Road, Ballymun, is charged with unlawful possession of two firearms last Saturday.
Objecting to bail, prosecuting garda Conor Garland cited the seriousness of the charge, which carries a maximum sentence of 14 years on conviction.
He said Mr Murphy lived at the address alone and a search was carried out under the Misuse of Drugs Act.
It was alleged that in the course of the search an RAK submachine gun and a Smith & Wesson revolver were found.
Gda Garland said the revolver was underneath floorboards in a bedroom occupied by the accused, while the submachine gun was found in the attic.
On the revolver being discovered, the accused disclosed the location of the other firearm, the officer said.
It was alleged that Mr Murphy admitted knowing it was there.
It was also alleged that cocaine and cannabis worth in the region of €60,000 were seized, but the accused was not charged in relation to that.
The garda said that following the search, Dublin City Council decided the house should be boarded up. The accused was now out of the address.
Gardaí believed he might flee the jurisdiction due to the seriousness of the charges.
Defence solicitor John Feaheny asked Gda Garland if he would be satisfied that the allegation against his client was that he was "more a pawn than a player".
"At this stage I would accept that," he replied.
The address was a council house where the accused had lived for eight years. His mother lived there before.
Mr Feaheny said it was boarded up because it was damaged and Mr Murphy would be allowed to return to the house if granted bail.
He also offered an alternative address at Melville Rise, Finglas.
Mr Murphy was a care worker for the elderly, including end-of-life care.
It was "pretty low-paid", but a steady and important job.
There was no evidence the accused would flee if granted bail, Mr Feaheny said.
He added that if there was any culpability alleged, it was "mainly a person who was being used".
In relation to a possible independent bail surety, he had "absolutely no connections that would be helpful to him".
Judge Ryan said Mr Murphy enjoyed a presumption of innocence and entitlement to bail.
She set bail in the accused's own bond of €1,000, with no cash lodgment required.
Under conditions, he must sign on at Finglas garda station, surrender his passport and not apply for any other travel documents.
He was remanded on bail to appear in court again on a date next month.