I know it means that they gelled well, but how?

What is the factor that establishes the strong connection?

When I'm at a party or gaming women in the park, we have an okay conversation but I do not understand how to establish strong rapport.