Firewall for Windows
From KlavoWiki
Allow Ports
netsh advfirewall firewall add rule name="Minecraft-TCP" dir=in action=allow protocol=TCP localport=25565 netsh advfirewall firewall add rule name="Minecraft-UDP" dir=in action=allow protocol=UDP localport=25565 netsh advfirewall firewall add rule name="Rust" dir=in action=allow protocol=UDP localport=28015
To disable the firewall
netsh advfirewall set allprofiles state off
To enable the firewall
netsh advfirewall set allprofiles state on