Is this server going to be located in your home, or on your gaming laptop? That means it is probably behind a router. The router has a public IP and you will need to configure this router to forward traffic from its public facing ip:port to your server in your home network. Game servers an a lot of fun This is very risk-free if you only forward the game traffic to your servers. Make sure your server/PC has the latest version.
If the server is going to be located outside of your home network (e.g. from a cloud provider or other company), you need extra security precautions. To configure the server so there are at least two types of traffic, you will need to log in remotely. Make sure you have an up-to-date OS, a firewall is enabled (to block all ports), and that your credentials are secure. SSH key, long-generated password, and root logins are not allowed