Well, for me, it's not that my loneliness is self-inflicted but a byproduct of having gender dysphoria and not much courage to actually transition or even socialize with other folks who are trans. Ultimately, my life is a pretty shallow one. I haven't gone to a movie with any friend or an acquaintance since I was 17 (I'm currently 37). So it's really hard to be a friend to anyone or even have someone who would want to be mine. When you don't socialize or have a means to socialize beyond a computer it becomes one of those habits that's impossible to learn when you're an adult. I don't know if I'll ever get out of this, personally, since the social skills I've built up are of the impersonal kind (good at work, professional as needed, reliable, but not relatable or warm).