> node run-baby-fleming
Storing nodes' generated data at /home/folaht/.safe/node/baby-fleming-nodes
Launching local Safe network...
Launching with node executable from: /home/folaht/.safe/node/sn_node
Network size: 11 nodes
Launching genesis node (#1)...
Failed to find the contact info of the genesis node
My Environment
Server
Node version : 0.25.18
Version or Branch used : 0.17 / 0.0.13
Operating System and version : 5.4.81-1-MANJARO-ARM aarch64
LAN ipv4: 192.168.178.24
Router
-- Access Permissions of 192.168.178.24 --
Safe_Network TCP 83.163.103.119 12000
Perhaps the port is already used by another service on the IP you are trying to start the nodes? or perhaps something else in your OS/environment not allowing you to start a service in that IP/port?
You need to make sure you are allowed to open a service/socket in the IP you are trying to and it actually belongs to your box, i.e. 83.163.103.119, is that the IP on your router or the IP on your PC/server? I think you need to open it on your server’s IP rather than the router public IP, then forward it?
I think you are trying to run the nodes using the public IP (which is your router IP?) rather than using your private IP (which your server/PC IP)? the genesis node is not starting because is not allowed to start the service on the IP you are setting, so unless the server/PC has that IP you cannot do that. I’m just guessing, as I’m not sure of you environment.
If the nodes cannot be run on the public ip address, then how are other nodes supposed to join?
How is a client program like a browser supposed to connect?
Okay, so I should run nodes on 192.168.178.24:12000 and connect to 83.163.103.119:12000.
I’ve tried, but I’m unable to do auth unlock on the client side.
sn_authd.log
ERROR 2021-01-08T01:26:48.822594628+01:00 [/home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/qp2p-0.9.6/src/api.rs:250] Failed to bootstrap to the network: Connection lost
ERROR 2021-01-08T01:26:48.822670890+01:00 [sn_authd/requests/unlock.rs:48] Error occurred when trying to unlock a Safe: [Error] ClientError - QuicP2P error: BootstrapFailure
ERROR 2021-01-08T01:26:48.822738745+01:00 [sn_authd/requests/mod.rs:120] Error when processing incoming 'unlock' request with id 2609454352: [Error] ClientError - QuicP2P error: BootstrapFailure
> auth create --test-coins
Passphrase:
Password:
Sending request to authd to create a Safe...
[Error] AuthdError - [Error] ClientError - QuicP2P error: BootstrapFailure
sn_authd.log
ERROR 2021-01-08T12:30:52.389043323+01:00 [/home/folaht/.cargo/registry/src/github.com-1ecc6299db9ec823/qp2p-0.9.6/src/api.rs:250] Failed to bootstrap to the network: Connection lost
ERROR 2021-01-08T12:30:52.389190117+01:00 [sn_authd/requests/create.rs:55] Error occurred when trying to create a Safe: [Error] ClientError - QuicP2P error: BootstrapFailure
ERROR 2021-01-08T12:30:52.389256487+01:00 [sn_authd/requests/mod.rs:120] Error when processing incoming 'create' request with id 3060295478: [Error] ClientError - QuicP2P error: BootstrapFailure
INFO 2021-01-08T12:30:52.389353245+01:00 [/home/folaht/.cargo/registry/src/github.com-1ecc6299db9ec823/quinn-0.6.1/src/connection.rs:228] drive; id=0
INFO 2021-01-08T12:30:52.390361044+01:00 [/home/folaht/.cargo/registry/src/github.com-1ecc6299db9ec823/quinn-0.6.1/src/connection.rs:228] drive; id=0
INFO 2021-01-08T12:30:52.390878055+01:00 [sn_authd/authd.rs:161] Response sent, request 3060295478 complete
INFO 2021-01-08T12:30:52.434397834+01:00 [/home/folaht/.cargo/registry/src/github.com-1ecc6299db9ec823/quinn-0.6.1/src/connection.rs:228] drive; id=0
So basically, when running the nodes the node should be run using the local IP address:
./sn_node --first --ip 192.168.0.9
If IGD is available then the --ip argument can be skipped.
The binary will attempt to use port 12000 first and will fallback to a random port otherwise. If manual port forwarding is done, then 192.168.0.9:12000 should be mapped to some external port eg. 56789.
Then, the genesis node can be contacted via: 80.160.100.120:56789
I just went through the CLI code and when using safe node run-baby-fleming if the --ip argument is not passed the IP defaults to 127.0.0.1 so make sure to pass the --ip argument