[Request] in config put public ip AND local ip

I would like to run a community network from a always on server I have at home and I would like to request a feature to make it happen

can node networks add xxxx create a config file with public IP AND local IPs so that other people can join the my home safe testnet?

or if there is a way to share a config with manually entering in there my public IP so other people will be able to join!

for example this is the config of a local baby fleming:

["b7b359bef964e0aa80921c2e4e49cd52b18e50b6b827fb1a0a8ca472d22dc729f978eae035fb5f872bc8588dc1f4dfc6",
["127.0.0.1:35059",
"127.0.0.1:36298",
"127.0.0.1:36897",
"127.0.0.1:38420",
"127.0.0.1:38921",
"127.0.0.1:39744",
"127.0.0.1:47663",
"127.0.0.1:53126",
"127.0.0.1:56559",
"127.0.0.1:58312",
"127.0.0.1:60355"]]

example of including the public IP of the home server

["b7b359bef964e0aa80921c2e4e49cd52b18e50b6b827fb1a0a8ca472d22dc729f978eae035fb5f872bc8588dc1f4dfc6",
"publicipnport","xx.xx.xx.xx:53456",
["127.0.0.1:35059",
"127.0.0.1:36298",
"127.0.0.1:36897",
"127.0.0.1:38420",
"127.0.0.1:38921",
"127.0.0.1:39744",
"127.0.0.1:47663",
"127.0.0.1:53126",
"127.0.0.1:56559",
"127.0.0.1:58312",
"127.0.0.1:60355"]]
3 Likes

although I might just put the public IP in the already generated config instead of localhost and then port forward from the router and it will work? let me check if it works and will come back in a bit. (local pc can already join as a node!!!)

1 Like

from the git hub guide
https://github.com/maidsafe/sn_cli

Set network bootstrap address
Another way to add a network to the CLI config settings is by directly mapping a network name to its bootstrapping address/es (IPs and ports). This can be achieved by using the networks set subcommand:

$ safe networks set community-network 161.35.36.112:15000
Network 'community-network' was added to the list. Contacts: '{161.35.36.112:15000}'
3 Likes

let me know if you get on I am locked in a quarantine hotel till 29th so am more than happy to spend time trying to connect

3 Likes

do you happen to know how to use the --first parameter?
I get this when trying to join my network:

Cannot start node (log path: /home/smoothie/.safe/node/local-node). If this is the first node on the network pass the local address to be used using --first

it seems like a good way to start a network!

guessing from what it says to pass it --first nn:nn:nn:nn:port being local ip and port of the machine the first node is running on

I found in the code that I dont run safe node join --first but safe node --first :stuck_out_tongue:

doesnt seem to also work that way

1 Like

i get :

safe networks set dreamnet3 79.xxx.78.17:65534
Error:
   0: Please provide the bootstrapping address/es

should I run first safe node run-baby-fleming?

1 Like

not sure im trying to figure it out as well

I don’t really understand what is being asked here, but I just wanted to say, this is the old repository for the CLI.

It’s now located here, under the sn_cli crate:

Edit: I’ll actually archive the old sn_cli and sn_api repos today.

3 Likes

think the idea was that @SmoothOperatorGR was hoping to start a test net genesis node on his home server and see if he could port forward to it to see if other people could join in.

a test net but with out digital ocean droplets

4 Likes

Hmm, I don’t think that’s trivial, but it certainly wouldn’t be achievable using the networks command. That’s to allow you to maintain multiple different networks.

5 Likes

seemed like a good idea at the time :slight_smile:

go enjoy you Christmas eve @chriso take some well deserved down time

5 Likes