In English if I didn’t hear someone, I would use any of the following: “What was that?” “Say it again” “What did you say?” “Sorry?” “What?”
What phrases are used most commonly in Portuguese? Would you say something different to a friend or family member versus a stranger?
I often want to avoid “Não entendo” or similar phrases because I want the speaker to say it again rather than just switching to English.

♂ Here are a few audio recordings for some phrases discussed, in case it helps:
I’d still point you towards the other options we’ve covered higher up.