Connection failed when trying to enter server

I have set up a beammp server through ZAP hosting. However, when I try to direct connect to my server, it tells me connection failed. Is there something I am missing? I joined the BeamMP discord and got the code for the beammp server, however, i cannot connect.