I'm trying to set up a Minecraft server on my laptop running Mint, but I'm having trouble with port forwarding. Most of the tutorials I found online are focused on Windows or are in a different language. Can someone guide me through the process or suggest a good resource?
5 Answers
Port forwarding actually happens in your router, not on your computer. You'll need to go into your router settings to set it up. If you're on a CGNAT ISP, they might block this feature, so keep that in mind. Just access your router’s admin page to start the process!
Just follow the same steps you'd take on Windows! Go to your router’s address via your browser, change the settings there, and you should be good to go. Most distros don’t come with a firewall by default, so you probably won’t need to deal with that either!
To set it up, head into your router’s settings. The procedure varies based on your router model, so find a guide that matches yours. If you're worried about your firewall, check Mint’s firewall settings too!
Port forwarding isn’t OS-specific; it’s all about your router! After you’ve set up forwarding for the Minecraft port (25565), make sure your public IP is used for others to connect. You might also want to check out this resource on DigitalOcean for Linux port opening: https://www.digitalocean.com/community/tutorials/opening-a-port-on-linux. You can use the command `sudo ufw allow 25565`, but it seems that ufw might not be necessary for you!
If you're looking for an easy way to connect systems, you might try running Tailscale. It creates a personal VPN, making both devices see each other as if they're on the same local network. Just keep in mind how it might affect gameplay or lag.
I found that ufw isn't on my system either, so you may not need to worry about it.