What a concept.
We all strive to feel wanted, accepted, and loved. How do we do ensure that we are needed in the lives of others?
Be the person who listens, who has genuine conversation with their peers. Be the person who strives for higher ideals, and holds their peers to what they say they believe in. Be the person who loves others with their whole heart, soul, and mind.
By truly loving another, you become necessary to them. So go out and love others boldly. In doing so, you will make yourself necessary in their lives.