Self hosted Minecraft server connection sometimes work, sometimes times out
Hello, I'm having an issue with running a Minecraft server on my personal computer. I'm using Fedora Workstation 38 as my Linux distro.
Here's what I've done so far:
- Opened port 25565 on my firewall by running this command
sudo firewall-cmd --zone=public --add-port=25565/tcp --permanent
- Enabled port forwarding on port 25565:
Friends have been able to connect to my server with some struggle. Sometimes they are able to join with no issues, but most times their connection gets timed out and/or they get an unknown host error while trying to join the server. I've tried joining the server myself by using my public IP, and it works sometimes, but most times it doesn't. I'm always able to connect by using localhost as the server address.
How can I fix this and make it so that everyone can always join without any issues?