1) Make quality friends. The quantity of friends does not help rid feelings of loneliness if you can't connect with them on a more personal and deeper level. You should have friends that you can spend time with as well as confide in when necessary to talk about more important issues, like how much you miss your family or certain places and things.
2) Make enough time for family. Although this seems like it would worsen that feeling but it hasn't been the case for me. Talk to your family as frequently as you'd like when your time and schedule permits. Being able to talk to my family whether via phone or Skype actually makes me feel closer to them rather than distant from them.
3) Focus on your purpose on why you are where you are. Why did you choose to come here? For work? for the experience? Even if that purpose is still unclear to you at the moment, don't spend too much energy asking why and try to experience as much as you can knowing your why will reveal itself to you. When you made the choice to travel, what were your initial reasons? Also, It's ok to be open to the possibility of romance but don't chase after it if was never a part of your plan to start with.
4) Perfect your craft and get to know yourself MORE. This is a time when you need to pick up more hobbies and work on sharpening your skills and talents. What haven't you tried that you want to try? What goals are you striving to meet and what steps can you take to attain them? Take advantage of this time and evaluate your life and purpose here in the present.