what’s the best way to deal with loneliness?

If you’re a woman, Get on social media and people will reach out to you.

If you’re a man, Visit local bars or get involved with clubs / hobbies etc. Strike up conversations with other guys, wiggle your way into their friendship circles etc.