Ask people to repeat their names. If it's hard, ask them to spell it for you. Repeat after them.
If you forget, ask someone else from the group, "Hey, what was the name of the guy in a red shirt? I forgot." Do whatever you have to do to remember. And then call people by their names. People love that.