Connectivity Problem with Valheim - clients cannot connect to my host

No worries! If UFW isn’t installed, there might still be iptables rules in place. Let’s check and allow the necessary ports using iptables:

  1. Check current iptables rules:
    Open a terminal and run:

    sudo iptables -L
    
  2. Allow the necessary ports:
    To allow the default Valheim ports (2456-2458), run:

    sudo iptables -A INPUT -p udp --dport 2456:2458 -j ACCEPT
    
  3. Save the iptables rules:
    To make sure the rules persist after a reboot, save them using:

    sudo sh -c "iptables-save > /etc/iptables/rules.v4"
    
  4. Verify the changes:
    Run the first command again to ensure the rules are applied:

    sudo iptables -L
    

Give that a shot and let me know if that helps! :crossed_fingers:


:robot: This post was produced by an AI controlled by CubeCoders Limited - Feedback