Pi Node Port Forwarding

Pi Node Port Forwarding Steps

If you are setting up a Pi node on a pc in your home network, you will more than likely require port forwarding rules. This allows ports that are normally closed to be opened and allow communication between your PC and the Pi Network. The steps below are a general outline. Wording and exact process for Pi Node port forwarding will vary depending on the manufacture of your hardware.

What is Port Forwarding

Port forwarding, which is also known as port mapping, enables computers or services located within private networks to establish connections with other public or private computers or services over the internet.

Why is port forwarding important?

Port forwarding plays a crucial role in facilitating remote access to resources on private networks. Since firewalls are designed to prevent unauthorized access, it is necessary to provide a mechanism for allowing desired visitors to connect. Merely knowing the IP address is not sufficient; requests must also be directed to the correct port. This additional information helps prevent unwanted visitors and adds an extra layer of protection against DDoS attacks.

Port forwarding works seamlessly with various identity management software tools such as multi-factor authentication, single sign-on solutions, etc. These tools provide an extra layer of security for granting access to sensitive areas like file servers and databases.

Steps to follow for Pi Node Port forwarding

Ensure security software is allowing traffic through to the Pi Node computer. If you need a complete Pi Node setup guide i’ve recently add it to my blog, and youtube channel.

Find Your PC’s IP address

To find your PC’s IP address in Windows, you can follow these steps:

  1. Open the Start menu by clicking on the Windows icon in the bottom left corner of your screen.
  2. Type “cmd” in the search bar and hit Enter. This will open the Command Prompt.
  3. In the Command Prompt, type “ipconfig” and hit Enter.
  4. Scroll through the results until you find the section labeled “Ethernet adapter” or “Wireless LAN adapter,” depending on how you’re connected to the internet.
  5. Under the appropriate adapter section, look for the “IPv4 Address” line. This will display your PC’s IP address.
IP address
IP address found in command prompt

Alternatively, you can also find your PC’s IP address by going to the Windows Settings menu:

  1. Open the Start menu and click on the Settings icon (shaped like a gear).
  2. Click on “Network & Internet.”
  3. Click on “Wi-Fi” or “Ethernet,” depending on how you’re connected to the internet.
  4. Click on “Properties” under the appropriate connection.
  5. Under the “Properties” section, look for the “IPv4 address” line. This will display your PC’s IP address.

Disable PC Firewall (if running)

Windows Firewall

To open ports on the Windows firewall, you can follow these steps:

  1. Open the Windows Security app by searching for it in the Start menu.
  2. Click on “Firewall & network protection” from the options available.
  3. Choose “Advanced settings” and enter the administrator password if prompted.
  4. In the “Windows Defender Firewall with Advanced Security” window, click on “Inbound Rules” and then “New Rule”.
  5. Select the type of rule you want to create (port, program, etc.), and follow the wizard to specify the details for the rule. In this case you want to add the Pi Node application.
  6. When prompted, specify the port number(s) you want to open, and choose whether to apply the rule to all profiles or specific ones.
  7. Finish the wizard and save the new rule.

The above steps can be used as a general guideline, but the exact procedure may vary depending on the version of Windows you are using.

Login to Router

Next you will need to login to your router. Please note that the exact steps may vary depending on the make and model of your router. I made this post with many popular default router credentials.

To login to your router, you can follow these general steps:

  1. Connect your computer or mobile device to the router via Ethernet cable or Wi-Fi.
  2. Open a web browser (such as Chrome, Firefox, or Safari) and type in the router’s IP address in the address bar. The IP address can usually be found on the router itself or in the user manual.
  3. Enter the username and password when prompted. If you have not changed these from their default values, they can usually be found in the user manual or on the manufacturer’s website.
  4. Once logged in, you will be able to access the router’s settings and configuration options.

Forward Ports

Now you need to locate the port settings for your router.

To find port settings on your router, you can follow these general steps:

  1. Login to your router’s web interface by typing the router’s IP address into a web browser and entering the username and password.
  2. Look for a menu or tab labeled “Port Forwarding” or “Port Settings”. The location of this menu may vary depending on the make and model of your router.
  3. Once you have located the port settings, you can view the current port settings and make changes as needed. For Pi node add TCP31400-31409“.
  4. Make sure to save any changes you make before exiting the router’s settings.

Some routers may have different terminology for port settings, such as “Virtual Server” or “Applications”.

Pi Node requires the ports TCP “31400-31409” to be open, but currently only the 3 have traffic going through. Your node will running correctly if only 3 ports are open.

Test your ports

To test connectivity and that the ports for your pi node are open, you can use the below tool.


Video: Step by Step Pi Node port forwarding


Recent Posts