spend a whole lot more time getting to know yourself, the good, the bad, and the ugly, then you have power, you fix the tings you dont like, and then watch the light shine on, and around you
Sit back, close your eyes, imagine yourself in a boring job, in a boring relationship and a boring life 20 years from now. Then wake up and enjoy your life.
first, you gotta brainstorm whats actually getting in your way. what's refraining you from feeling not lonely and happy? get rid of it. if it's friends treating you bad and excluding you, don't hangout with them as much, find new friends. if it's something that's stressing you out, or that you're upset about, think to yourself, "will this bother me in a week, or a month, or a year?" if not, well then let it GO! if it's just you standing in your way, well don't. just start exercising good self talk. and go out! and hang out with people more often, or call and talk to people when you start feeling lonely. good luck.
Get out there and find someone who appreciates you. That will lift your spirits and make you more confident also. Just know that each and every one of us are special individuals just as we are.
When you find the answer, can you share it? But really, I think the short answer is, know what you want or need and work on getting it.