Most of the people whom I know have taken pills/medicines to get rid of Loneliness/depression, have not got much favourable results. Being lonely is really killing and leads to depression. I feel that socializing and meditating are much better ways to get control on such problems.