Search code examples
serverportminecraftforwarding

Forewarding ports, specifically port 25565 not working


So, I have been setting up a server for minecraft using McMyAdmin and Ubuntu server edition. The port :8080 for managing the server is working fine with port forwarding, however, port 25565 for the server itself is not. Can I have some help with this?


Solution

  • Forwarding ports is different for every different type of router that you have, and to a lesser extent, the operating system that you have. It's also different for individual applications. As such, you'll need quite a specialised guide.

    I'd recommend checking out PortForward's guide on forwarding ports.

    You'll also likely want a static IP address for this.

    You may also need to allow both TCP and UDP traffic through Ubuntu directly:

    TCP:

    iptables -A INPUT -p tcp –dport 25565 -j ACCEPT
    

    UDP:

    iptables -A INPUT -p udp –sport 25565 -j ACCEPT
    

    Save the changes:

    iptables-save > /etc/iptables.rules
    

    Hope this helps!