Living in apartment and condo buildings the "community" is basically limited to who live in the building/ on the floor. There are people who sleep 15ft away from me on the other side of a wall that I have never met or heard a peep out of.
There is no community in NYC, LA or Chicago, they are simply too large. There is some shallow communities within buildings or blocks.
Rural communities it's common to know everyone in the town and all their laundry good and bad.