In general I agree with the premise of "You need to find people who are capable of understanding you".
It's actually a combination of that and your feeling about yourself. I'm not sure how to describe it, but I'll just call it once you're in balance with yourself, i.e. in an okay(maybe not perfect or ideal) mental state, and you have some sort of pillar you can lean on(your beliefs, your understanding of the world, etc.), then its no longer about your desire to get others to accept you, but rather putting yourself in an environment where you feel okay.