Is it possible to not be lonely while not having any friends?

I'm gonna be 30 this year and, even though I've genuinely tried to make friends and put myself out there, no one I've ever met reciprocates when I make the proposal of hanging out outside of said events. I know that sounds like I'm exaggerating, but I promise I'm not. I guess I'm the problem, even though I never am anything but good to people. They must have their own cliques and I guess just prefer being with them.

So you know what? I'm done. For good this time. I'm just not gonna try anymore. But before I commit to this, I want to know if purging of loneliness is possible by going down this road. That I can be truly happy being by myself.