Skip to content

Commit

Permalink
Reorg routability + add link
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo-Besancon committed Jan 5, 2024
1 parent 944ee66 commit 49077d0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/node/routability.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,22 @@ In Massa, nodes are non-routable by default and require a manual operation to be
## How to make your node routable

- make sure the computer on which the node is running has a static public IP address (IPv4 or IPv6). You can retrieve the
public IP address of your computer by opening ipify
public IP address of your computer by opening ipify (https://api.ipify.org or https://api64.ipify.org)
- if the computer running the node is behind a router/NAT, you will need to configure your router:
- if the router uses DHCP, the MAC address of the computer running the node must be set to have a permanent DHCP
lease (a local IP address that never changes, usually of form 192.168.X.XX)
- incoming connections on TCP ports 31244 and 31245 must be directed towards the local IP address of the computer
running the node
- setup the firewall on your computer to allow incoming TCP connections on ports 31244 and 31245 (example: `ufw allow
31244 && ufw allow 31245` on Ubuntu, or set up the Windows Firewall on Windows)
- you can then test if your ports are open by typing your public IP address and port 31244 in https://portchecker.co (then again
with port 31245)
- edit the file `massa-node/config/config.toml` (or create it if absent) with the following contents:
``` toml
[protocol]
routable_ip = "AAA.BBB.CCC.DDD"
```
where `AAA.BBB.CCC.DDD` should be replaced with your public IP address (not the local one !). IPV6 is also supported.
- run the massa node
- you can then test if your ports are open by typing your public IP address and port 31244 in https://portchecker.co (then again
with port 31245)
- Additionally, in your massa-client, you can check that the `get_status` command shows your `Node's IP: <your_public_ip_address>`.
If it shows `No routable IP set` instead, please check again your configuration.

0 comments on commit 49077d0

Please sign in to comment.