Finding a third place helps a lot. For me, it's church. That's my community that's outside of work and family. But I also have hobbies (karting, gun range, etc.) and through that, I meet new people.
Church works for me because I tried to pursue one based on the quality of its small/home groups and not just off Sunday service. Most people are going to find a Sunday service they like and find themselves stuck trying to actually find community. I think it's fair to say churches are failing to facilitate small groups better. It's not just having them, it's spawning new ones regularly, making sure to reach all the demographics. It takes a lot of resources to do that, which means maybe pastor needs a slightly smaller trendy shoe budget.