According to me, loneliness is not a bad thing but If you are going to depression then It is very important to overcome it. The best way to overcome loneliness is to be social. When you active socially then people started connecting you.