Problem with the online Multiplayer

Hi, I am actually a beginner and I wanted to create a multiplayer game so here is my problem: the game actually works with local (using Hamachi or the address for example) but my friend couldn’t join me using my (public) IP address did I do something wrong? (Héberger = host and Rejoindre = join)