You essentially don't. I'm 32 and I'm still trying to figure out this question. I'm expected to be stoic and invulnerable at all times. I'm told to continue with my life and my wounds will heal. I'm supposed to continue with my passion of art and get a good paying job and someone will come along to help alleviate my emptiness. On the other side of the coin, there are people like my ex-wife whom 3 months after divorcing me and 3 years after cheating on me, is comfortably getting therapy, petting my cat, browsing Tinder for some company and spending her weekends getting the relief she needs from an assortment of support structures that seem to come to easily to women. I know this is an evolutionary trait and I'm not really contesting otherwise, but since everyone is so preoccupied with parking girl turds on men these days, I just wanted to shine a light on what it's actually like for an average, lonely man in 2020.
For 3 months I have been searching for a friend. Like, literally a friend. I have basically no sexual interest in anyone anymore -- it's too fucking difficult to obtain. I just want a friend. Someone to share a moment with. Someone to laugh with, you know? It's not a big fucking ask. There is no cure for your loneliness. I'm sorry. It is the way of the world. There is something sick in our society and you are at the shit end of the stick I'm afraid. My best advice is the advice that was given to me, which is just focus on you. However I don't mean it as a means to further yourself or improve yourself. Just do it as a distraction. Take a hobby and do it everyday until you're really good. It gives you a sense of purpose and satisfaction. It helps during the daylight hours. At night though, you're on your own. I suggest sleeping meds. That's my solution. Forever alone, brother. You might as well pursue some mastery like I am. Be a monk.