I play an online game and that helps quite a bit. I find it really easy to communicate and meet people on there. Sometimes I don't even interact with people though, but it's just nice knowing you're on a game surrounded by people. I don't know if you're into games or not, but it's pretty simple and fun to me. So that'd probably be my main suggestion is to see if there's an online game you enjoy.
Sometimes I want to be left alone and in those times I will watch something or play something single-player or whatever. YouTube is great too, I love like scary stories and stuff on there. If you have people to hang out with, that's always my first option if I am feeling lonely and I can hang out with them, but if not I just think playing stuff online is the next best thing.