do i have to restart my router after port forwarding enabled?
- User
do i have to restart my router after port forwarding enabled?
- Assistant
Generally, you don't need to restart your router after enabling port forwarding. Most modern routers apply the changes automatically once you save the configuration. However, if the new port forwarding rules don't seem to be working as expected, restarting the router can help ensure that all settings are correctly applied.
Here are the steps you typically follow to set up port forwarding:
- Log in to your router's web interface.
- Navigate to the port forwarding section.
- Enter the necessary details (like the local IP address of the device and the port numbers).
- Save the settings.
If you encounter any issues, consider the following troubleshooting steps before restarting the router:
- Double-check the IP address and port numbers to make sure they are correct.
- Ensure that any firewall settings on the router or the device receiving the traffic are configured to allow the forwarding.
- Confirm that the device has a static IP address to avoid changes in its IP address later.
If the above checks are correct and the port forwarding still doesn't work, then restarting the router can be a good next step.
- User
i port forwarded my minecraft server with inernal ip 10.0.0.18, i tried connecting from other network and it said connection timed out
- Assistant
- User
i used sudo iptables -A INPUT -p udp --dport 25565 -j ACCEPT
- Assistant
The command you used is correct for allowing UDP traffic on port 25565 through
iptables, but you also need to allow TCP traffic for a Minecraft server, which primarily uses TCP. Additionally, it's a good practice to save youriptablesrules so they persist after a reboot.Here's what you need to do:
-
Allow TCP traffic on port 25565:
sudo iptables -A INPUT -p tcp --dport 25565 -j ACCEPT -
Allow UDP traffic on port 25565:
-
- User
doesn't work((
- Assistant