Minecraft (java) has a weird error and will not start anymore

What happened when you tried to run the command? What was the error?

Here is an someone else explaining what host network does. Basically, it attaches the app network directly to the host network and not through the docker network bridge.

Not sure how it changes the risk of forwarding the port though. Usually it is a good idea to see if you really have to forward a port or if you can do something like tailscale to not have to forward it. A good place to start is thinking about who will actually be using it. If it is just you and a couple people, it could be possible to have them install tailscale to protect yourself better than forwarding a port.