Online multiplayer?

I was wondering how I could allow other people to connect to my game? I was able to get LAN to work but no idea how to get it to work with regular online play. I’ve tried using hamachi but doesn’t seem to work. Any help is appreciated. I’m using unreal engine 4.24.3.