Can't connect to others in minecraft, but others can connect to me

When i add my friend server to Minecraft It says “Can’t Connect” but when they try to join my world they can without any trouble, please help