One thing that helps with loneliness is to find a hobby you like and stick with it. Enjoy yourself and have fun while doing it. And if you do it in a club or a group, you might find some nice people who actually give a crap to be friends with.
Also, don't give up on life. Suicide is not the answer. If you're still lonely, then keep trying to find help. Something good might come your way, and death will only take away that chance.
If you keep trying and don't give up, you can surely defeat loneliness.
"When you close your doors, and make darkness within, remember never to say that you are alone, for you are not alone; nay, God is within, and your genius is within. And what need have they of light to see what you are doing?"
The medication for the hurt associated with loneliness is the recognition that we have internal strengths which act as our friends and companions for life, along with the people closest and most loved by us. This is something we slowly learn to seek throughout the course of our lives.