The biggest security risk of hosting your own gaming server is allowing users outside your local area network (anyone not on your Wifi) to play. You will need to make network changes to your router. Commonly referred to as port forwarding or opening a port, this allows external devices to connect without their own public IP address.
In the past, there has been no way to overcome enabling port forwarding to share local devices with external users. By installing Remote.It on the gaming server or another device on the same network, you can share your Minecraft server without having to understand routers or IP addresses.