As a human, you must learn how to get comfortable with your own skin and also enjoy your own company.
Unsplash
Life is unfair, people would not always treat you well, you cannot depend on others for happiness. Enjoy your own company so that when you don't yet have a partner or close friend, you can still be happy with your life. The thing there is even if you have close friends who cares and you still feel bored whenever you are alone, the relationship won't go well. You will be too needy of others that they see you as pest and a disturbance all the time.
When you know how to love yourself without depending on others, you begin to attract genuine people who also love you. Find time to be alone, take breaks from yours environment, take yourself out and spoil yourself, go for an adventure alone.
Be comfortable with you skin. If you do not love yourself, don't expect others to do that for you, it must start from you first. I'm not saying you should isolated yourself or you should be selfish, what I'm saying is that you should not depend on the validation and company of others for you to feel good and love yourself.
Don't lose yourself because you want others to love you, or you will lose people when you want to find yourself back.