First thing you have to remember is that always be ready to mingle with people.For that you will have to overcome your shyness.
Make sure that you are comfortable with them and also make sure they are comfortable too.
If you are always lonely, look for people who are lonely too. Only you can understand the feelings of a person who is struggling with the same problem as you.
When a person is feeling low and there is no one to comfort them, you can go ahead and comfort them and let them know that you can always be a good friend.
Always keep smiling!feel free to contact me: firstname.lastname@example.org
comment if this helped you even a little bit.
I will make more posts on how to make friends.