I think loneliness is due to lack of self-confidence and having a lot of leisure time . You are afraid of making new friends or increasing your knowledge with an existing friend or relative , In my opinion to eliminate this terrible feeling you have to try to be a volunteer in any charitable organisation or try to help poorer people to stay in touch with the society and feel that you added value to the world , it's also a good way for killing the time