voice recording

You've already said hello (in German, of course) and now it's time to move on to the other formalities, which quite often turn out not to be formalities at all but a sign of genuine interest in the person you're talking to. So:
When you are on du terms you can shorten the question to "Wie geht's?", which is not acceptable when you are on Sie terms. There only the full form works:
You've already realised that this construction requires Dativ (du - dir, Sie - Ihnen).
There's also this option:
And you can also ask like this (possibly with a shade of suspicion):
Enjoy your conversations and good luck with learning German!