Not an expert in such matters but nobody nowadays care for expert opinions anyway so.
It is getting harder and harder to talk to people these days. Therefore crying sorta helps, alone preferably, otherwise people will feel obligated to be shocked and offended at your tears.
Loneliness is a bag of chips, you run out, hurry to the nearest social gathering and stock up.
Loneliness is a complicated flavor, it's a mix of varied ingredients, some are subtle, others blow up in your face, so protect your face....I think? I'm just making things up, like a regular person.
There are thousands upon thousands of movies, articles, info graphics and 'expert opinions' on loneliness. In these movies, for example, people are all over each other, hugging, listening, kissing, socializing after sharing their stories by embarking on an epic journey that transcends race, sex and other social barriers. Real life is a bit different, try any of those things, you would be better off watching the movie and promptly filing it under 'lies' in your memory palace. It only serves as a vital 'things never to do, ever.' reminder, nothing more.
So what crying does for you is it get's your heart feeling again, and also clears those clogged pores on your face(don't know if this is true, i just made it up). Don't let your beating, blood pumping heart turn cold and unfeeling, blood is life, the heart regulates that life so remember to feel.
Lastly, I think most people are lonely for many wildly different reasons but it's like a universal truth so take it easy. Because It'll go away soon and you will be better.