Hosting a game built with netcode on an online server

Hi, I’m new to game dev and i’m currently building a simple multiplayer game, where players can just see themselves from each other’s end, thats enough for a start for me. I followed a tutorial and built one and played within my pc but how can I host it online so I play with someone else where.

Open a port on your firewall (Windows/Router) and adjust the connection to use your public IP and not 127.0.01.