Skip to main content
Fortytwo Relay Before the Relay can be launched, the .env file has to be set up first. It is located in the folder cloned from Fortytwo Relay Setup .
If you haven’t set it up during the ‘Setting Up the Fortytwo Relay Node’ stage, copy and rename the .env.example reference file.
FT_ACCOUNT_PRIVATE_KEY=
FT_RPC_SERVICE_PORT=42420
FT_NODE_LISTENER_PORT=42042

IPFS_SWARM_PORT=4001
IPFS_DATA_PATH=/data/ipfs
IPFS_MOUNT_PATH=/data/ipfs_ipns
HOST_PUBLIC_IP=

Environment Parameters

FT_ACCOUNT_PRIVATE_KEY

Paste in the private key of an EVM-compatible Web3 account. You can get it from any Web3 wallet that supports EVM networks.
  • Your Web3 account should be different from your Inference Node account. This applies if you participate in both Inference and Relay activities at the same time.
  • Keep your Private Key secure. Never share it publicly or commit it to version control systems.
Early participation note:If the private key you wish to use is not tied to the public wallet address you applied with:EitherA. Contact us at [email protected]
  1. Title your letter “Relay Program Participation”.
  2. Specify the public wallet address that you registered with.
  3. Specify the new public wallet address that you will be using for participation.
orB. Contact our Discord support agent MJ with a message containing the information listed above.

FT_RPC_SERVICE_PORT

Default port is 42420. Change it if necessary.
  • If another process in the system is using this port, for example, an Inference Node is running on the same machine, then change this port for the Relay Node.
  • It must be different from the FT_NODE_LISTENER_PORT.

FT_NODE_LISTENER_PORT

Default port is 42042. Change it if necessary.
  • Your device’s IP should be static and public.
  • The port defined for FT_NODE_LISTENER_PORT should be publicly accessible over both TCP and UDP.
  • If another process in the system is using this port, for example, an Inference Node is running on the same machine, then change this port for the Relay Node.
  • It must be different from the FT_RPC_SERVICE_PORT.
Ports Availablity Verification’ can help you check if the Swarm will be able to see your node.

IPFS_SWARM_PORT

Default port is 4001. Change it if necessary.
  • Your device’s IP should be static and public.
  • The port defined for IPFS_SWARM_PORT should be publicly accessible over both TCP and UDP.
See the IPFS official documentation if want to learn more on IPFS. Note that no other setup than defined in our documentation is required. Ports Availablity Verification’ can help you check if the Swarm will be able to see your node.

IPFS_DATA_PATH

Default path is /data/ipfs.
  • Make sure that this folder exists before running the node.

IPFS_MOUNT_PATH

Default path is /data/ipfs_ipns.
  • Make sure that this folder exists before running the node.

HOST_PUBLIC_IP

Paste in your IP/your server IP address.
  • Your IP should be static and public.