A Blackpool man who accessed indecent images of children, via the internet, later admitted to a probation officer he had sex with a 15-year-old child.
Kevin Davey accepted police claims he had talked about sex to boys in chat rooms and that he was attracted to children.
Preston Crown Court also heard that he led an isolated life and only communicated with people through the web.
The 43-year-old of Clevedon Road, North Shore, was given a six-month prison sentence, suspended for two years, with two years supervision and ordered to complete a sex offenders treatment programme.
Davey pleaded guilty to 12 offences of making and possessing indecent images of children.
David Clarke, prosecuting, said police visited the defendant’s then home on Station Road, South Shore in February 2013. They had been alerted by the Child Exploitation and Online Protection Unit that images of concern had been downloaded.
A check showed that between the December 2012 and February 2013, 102 indecent images at level one had been accessed. That often related to children as young as 10 posing in underwear.
As well as 19 images had been accessed at level two, four at level three and four at level four, which showed sex between children and adults.
Mr Clarke added: “In a pre sentence report by probation there are troubling admissions, in the defendant speaking of having had sex with a 15- year-old and having apparently sent images out, when he has been involved with child .”
Defence barrister John Woodward said his client had endured a difficult life.
He said: “He has been very frank, effectively he has admitted committing a further offence, perhaps more serious than what he has been charged with.”
Judge Anthony Russell said, as he passed sentence, that the public interest in the case would be best served by making a suspended prison sentence, together with supervision and a community sex offender treatment programme.
Davey will be on the sex offenders’ register for seven years and barred from having any contact with children under 16.