The nicest people i know are often the ones that get fucked the hardest in life.
All the cannon men i know, no matter the arena - business, sales, leadership ect are their because of their edge. They are sharp, indifferent and command respect through example and expectation of those around them.
This doesn't mean be a dick, but it also doesn't mean be a "nice guy". There's a book called No More Mr Nice guy, get it and read it.
If you're lonely, people will also pickup on that. Thats something that will feed into itself unfortunately. Like a weird feminine " man" chasing a girl will push them away, they can sense the neediness. Chicks don't like nice guys. I learned that when I was 20. As soon as I started not taking girls seriously and was a bit of a dickhead dating was all of a sudden on easy mode, they'd come to me. You hear this story often, hottie dating an indifferent guy that doesnt call her back ect... Because he's outcome independent and self reliant.
It sounds like you might have low self esteem or not understand your own value. Good news, this can be fixed with learning how to fight. I have recommended this to many clients and its changes their lives - go to a dojo and learn how to hurt people. The confidence of knowing how to fuck people up will give you a real like exp boost to charisma, when you're really good in 12 months, enter a comp, its a fantastic talking point and people love hearing about that stuff. Also, there is 50% less dickheads in martial arts percapita.
There's a difference between being peaceful and harmless. People don't respect the latter nearly as much as someone with edge, honed and sharp that is directed at mastery. Get fucking good at something, like really good. Could be anything, just be passionate about it and people will be drawn to that. I spent 20 mins talking to a nerd at Christmas time in the grocery store about some card game called magik and hes now hanging out with some of my buddies - passion is cool
Reading
No more mr nice guy - Robert glover
Rational male - rollo thomasi
48 laws of power - robert Greene