Kubuxu / go-ipfs-swarm-key-gen

118 stars 60 forks source link

ipfs swarms with the same swarm.key #2

Closed mariosk closed 7 years ago

mariosk commented 7 years ago

I've setup 2 ipfs daemons with the same ~/.ipfs/swarm.key. I've 2 questions:

  1. Should the command "ipfs swarm peers" show 1 result? I now get nothing as a result.
  2. I added a file in the first node but I can't see it from the other node.

What am I missing? Thanks!

Kubuxu commented 7 years ago

IPFS needs a way to bootstrap the network. On public network those are gateways that do this work. When running private network you need to change bootstrap nodes to your own.

So on both nodes:

ipfs bootstrap rm --all
ipfs bootstrap add $FULL_ADDRESS_PEERID_OF_THE_OTHER_NODE

you can get full address from ipfs id with running daemon.

mariosk commented 7 years ago

Thanks a lot @Kubuxu, that works fine!