Just forget about yourself and think of the other person. Soon you'll be surprised because you'll have a new friend. I can't really think of any surefire methods of getting over being lonely. There are a couple of things I do when I feel this way. Another thing I do when I get to missing my family is to call them up.
Nothing works better than hearing their voices.
It's a lot different than just writing a letter. When you talk to someone, you remember they really exist. Next to being hungry, I guess it's the worst feeling in the world. Love, David Jones reprinted from Tiger Beat, Vol. 2 Number 9, May 1967.