What you are doing with this man isn’t wrong, but it isn’t likely to solve your problems. When someone is as lonely as you seem to be, they are very vulnerable to interpreting any gesture of kindness as having more meaning than perhaps it does. This man showed some caring and interest and even offered you some advice. That must have felt very, very good. Of course it made you happy. Of course you enjoyed it. But the facts are that you know nothing about him and he isn’t in your life the way a friend would be. Your dependence on hearing from him as your primary source of social contact isn’t healthy or useful. You need more.
Analyzing the man’s behavior isn’t really going to help you feel better. Your focus needs to be on finding a group of local friends with whom you can share your life. People do need other people to feel and be at their best. If you don’t know how to start, please search the PsychCentral archives. There are many good articles on how to find and maintain friendships.
I wish you well.