There is no final solution to loneliness until you recognize that you need the resources which are in yourself to enpy, within limits, being alone being the kind of person that you like to be with, and reaching out to others, not in a grasping way, but in an attempt to be meaningful and loving and of service in their lives.
Even if the sun were to rise from the west, the Bodhisattva has only one way.