A convicted sex offender has appeared before a special sitting of Killarney District Court after he was arrested in Tralee on foot of an alert issued by Police Scotland.
George Clingain, 38, has been remanded in custody.
Scottish police had issued the alert in recent days after Clingain failed to tell them or gardaí of his location.
The court was told that Clingain, originally of Ravel Row, Park Head in Glasgow, had been living in a tent in Tralee since 7 August and most recently had pitched his tent under a bridge near the Fels Point Hotel, where Rose of Tralee contestants are staying.
Detective Garda James Hurley told the court that Clingain had been staying in various places since July - including Donegal, where his late father was from, as well as Cork, Limerick and most recently in Tralee.
"In all these locations he has not registered with any member of An Garda Síochána as required if he is at a location for seven days," Det Gda Hurley said.
Clingain made no reply when charged at Tralee Garda station on Saturday night for failing to notify gardaí of his address, Det Gda Hurley said.
The offence carries a five-year sentence.
Det Gda Hurley said Police Scotland had issued an alert on Clingain in the past few days and he was traced to a beach in Tralee.
Clingain had been placed on the sex offenders register in Scotland for a period of one year after being convicted in March of child abuse material - of taking indecent photographs of a child or children.
He was also under the supervision of the probation service in Scotland and this order too was now breached.
Inspector Donal Ashe said the State objected to bail and wanted Clingain remanded to Cork Prison until Thursday's district court sitting in Tralee for directions from the DPP.
Padraig O'Connell, solicitor for Clingain, said there would be a guilty plea to the charge. His client, a separated man, had never been in custody previously on any matter and was returning to Scotland to work.
He had not met with his police supervisor or his probation officer in Scotland as both were on holiday in July when he left. He could reside in a homeless hostel until Tralee court on Thursday.
Det Gda Hurley agreed with Mr O'Connell that Clingain had been "totally co-operative" and had never been in custody on any offence.
However, he told Judge John King that he had to consider "the safety aspect for Clingain" if word got out he was on a sex offender's list and Clingain would be safer in custody in Cork Prison than in a homeless hostel in Tralee where gardaí would have no governance over his protection.
Judge King noted the evidence that Clingain had not made the authorities aware of his location and an alert had to be issued.
He said custody was "the safest option" for him and as directions were expected from the DPP within days, and the matter would be over and done with by Thursday next, he would remand him in custody until then.
On request of Mr O'Connell, Judge King directed the Governor of Cork Prison to ensure the safety of Clingain.
Legal aid was granted as Clingain has no financial means in Ireland.