My friend can't connect to my minecraft world

I have a server hosted in Kubuntu, through zerotier, it connects well to me and it works fine, but it rarely lets my friend in, I have tried to set up public and private networks but nothing happens, it remains the same.