Try this: Visualize someone else who’s lonely, for example, an abandoned child sitting on the street corner.
Talk to him / her and listen to the responses.
Ask what he / she needs.
Then identify how you need to give this to yourself in some way.
For example, if the child is hungry, or needs a hug, or wants to play, or wants to create something, or needs love, meditate on how YOU need this.
What are you hungry for that you’re ignoring?
How do you need to nurture yourself?
How do you need to have more fun?
How do you need to be creative?
How do you need to give yourself love?
It might be none of these things; only the inner figure can direct you to what you need.
Loneliness happens when you abandon yourself in some way.
You focus and behave in a way that ignores your deeper, true feelings.
The work is to identify your real needs and act on them.