When do you know gender?


I'm seeing everyone in may 2020 baby group posting about their gender. When do you usually find out the gender? I'm 17 weeks and my dr said I have to wait till 23 weeks. But it looks like everyone one else is finding out around 15-16 weeks