Friend can't join

I just made a BeamMP server and I can join but my friend can’t connect/ We tried through direct connect and even setting the server public but it keeps saying connection failed on his screen. What do we need to do now?