Yup, that’s about it. A good tactic if you’re not sure about someone’s gender is to lead with your own: “hi, I’m shapis, he/him”. They’ll invariably follow suit most of the time. If they don’t and you get it wrong, well, you tried and were polite about it.