What should I do to overcome the feeling of loneliness?

I used to suffer from loneliness and depression as well. My depression started when I was about seventeen or eighteen years old. I also had poor self esteem/low self-confidence.At that time, I watched too much television (nowadays when talking about this with my sisters, they said I was