Issues with your Minecraft server connection
Issues with your Minecraft server connection
I’m sharing this in the networking community as I suspect the issue lies there. I set up a Minecraft server and can join it, but only people within my network can do so. I’ve tried all possible solutions—port forwarding is active, internal IP correct, external IPv4 matches, even switched to another port didn’t work. The firewall seems fine, as I’m using MineOS instead of Ubuntu, which had the same problem. It’s a bit frustrating, and I’m not sure how to proceed.
I've attempted to turn off firewalls on the server and router, but the issue persists. I also configured Ubuntu to open all ports, yet it didn't resolve the problem. Then I moved to MineOS Turnkey, hoping for a fix, but it didn't work either. I've changed settings and port forwarding several times without success.
Which port are you connecting on? MineOS typically uses 22 for SSH, 8443 for webui, and 25565 for default Minecraft. If you need to open something else, you'll have to configure it manually with iptables. Since you can reach the server locally, I recommend checking your router settings, port forwarding rules, and firewall configuration. It seems there might be an issue there—look up a guide for your router or verify the setup.
Using 22 for command line, 8443 to reach the UI, and 25565 for Minecraft connection. I attempted to open ports 25565 through 25575, tried various configurations, but nothing worked. I've reattempted port forwarding several times, still facing issues. I'm considering using ngrok, though I don't see much promise at the moment.
On your router's port forwarding configuration, the protocol should be set to both TCP and UDP. You may want to verify this by checking both the Firewall on the Router and the Server. Have you attempted to access your machine using your public IP address? Did you choose the correct IP corresponding to the Ubuntu system? Have you double-checked that the right port checker website is in use to confirm the port is accessible? Another method is to try connecting via telnet to the IP and port—if it connects successfully, you’re likely good.
The protocol is configured exclusively for TCP, allowing a switch to both options. I can reach the server through my internal network, confirming it's likely the router I understand. I'm confident the correct IP is directed to the port forwarding rule. I used a port checker and it confirmed the port is accessible. It's also important to note this isn't running on an Ubuntu system; I'm using MineOS Turnkey, which is Debian-based. EDIT: I changed the protocol to TCP/UDP but it had no effect.
Are there any error notifications appearing in the MC client? Can you observe anything in the console of the Debian server? Is the firewall activated on the server? I recommend testing port 25565 temporarily just to confirm it wasn’t blocked by a rule. (TCP and UDP) I’m not sure which router you’re using, but on my setup with my own servers, it prompts for both external and internal ports, ensuring they match the ones it requests.