Some helpful activities are pursuing our interests/hobbies and giving (which includes our time, aid, love, even listening ear) to others in need. There are many lonely individuals around and reaching out to them may also eliminate one's own feelings of loneliness.
"It is in loving—not in being loved,
The heart is blest;
It is in giving—not in seeking gifts,
We find out quest."