How do you deal with loneliness?

I’m happy by myself but now and then I crave connection. It’s suffocating not being seen or understood .. or not having someone you adore because most people are just mid and not intellectually stimulating.