Yoga classes, coffee shops, CrossFit, meetups, hiking groups, rock climbing, dance parties, marathons, evening painting classes where they serve wine, improv comedy shows, improv comedy classes, cooking classes, language classes, indie band shows of every type. Meditation, Buddhism, any kind of spirituality you might be into. Literally everything just a few clicks away on Google. You don't need to "know somebody", you can just go. Go a few times in a row and make conversation with people, and suddenly you've got community and new friends.
Modern culture is an incredible smorgasboard where you can connect with every type of person through pretty much every type of activity known to man, whether athletic or artistic or spiritual or educational or all four.
The bar was a kind of lowest-common-denominator location that often came with a drinking problem. Bars still exist, but today's alternatives are almost infinitely more varied and vibrant.