Skip to main content
If the port is set correctly, the Relay Node reports successful connection directly in its logs.

Test Ports Before Node Launch

To check for open ports and verify port forwarding setup on your router before running the node, use one of the following websites (or similar ones): You will need to:
  • Enter your IP address. You can acquire it with any service like whatismyipaddress.com .
  • Enter the port that you want to test. 42042 is the default port used by Fortytwo applications but it can differ if you manually change it in the .env file.
Results:
  • Port is available - You can launch the node and the Swarm will detect it.
    • If you use 42042 port — Make sure that this port is not used by another application. For example, if you are using both Fortytwo Inference Node and Fortytwo Relay Node on the same device, a different port for the Relay Node needs to be opened.
    • If you use another port — Make sure that this is the port that is defined in your node’s .env config file.
  • Port is unavailable — Swarm will not be able to detect your Relay node. See ‘Troubleshooting’.

Fortytwo Ports

By default, Fortytwo uses port 42042 in its applications. You will need to open multiple ports if you are using multiple nodes on the same device simultaneously. Each application will require a different port to be set up in its configuration file. For example, if you are using both Fortytwo Inference Node and Fortytwo Relay Node on the same device, a different port needs to be opened for the Relay Node and defined in its environment file.

Port Forwarding

Port forwarding or port mapping allows the Swarm to connect to a specific node. This allows you to run your node from behind a router. Usually, the router has a public IP address and computers in the router’s network obtain a private IP address from the router that is not addressable from outside the network. When you forward a specific port on your router, you are telling your router where to direct traffic for that port. If done successfully, you will see a “Port is available” message when performing this test.

Troubleshooting

Most likely, you will see a “Port is unavailable” message if you haven’t configured your device/router prior to testing your ports. You will need to configure your device/router in order to pass the check.
  • Please contact your provider to ensure that you have a static open IP address.
  • Please refer to your router’s manual or the manufacturer for assistance in setting up port forwarding and assigning a static IP to your device.