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.

Try hosting it locally once. I have never tried on another host but use the tild key or whatever that is called under escape