IPFS connection for distributed file sharing

1. Register your node in IPFS routing.

ipfs register

OUTPUT

info: Registered IPFSaddress: /ip4/127.0.0.1/udp/4001/quic/p2p/12D3KooWJPbNGRYfSJu9tQTrwMkHu6uMqC39K6qza8CzZAeaHPBw

2. Check your IPFS ID.

ipfs id

OUTPUT

{
id: '12D3KooWJPbNGRYfSJu9tQTrwMkHu6uMqC39K6qza8CzZAeaHPBw',
publicKey: 'CAESIH9glfxqooHKY9DvAFPehbWQCrbx8OZfKZwZHYFhPAiC',
addresses: [
'/ip4/127.0.0.1/tcp/4001/p2p/12D3KooWJPbNGRYfSJu9tQTrwMkHu6uMqC39K6qza8CzZAeaHPBw',
'/ip4/127.0.0.1/udp/4001/quic/p2p/12D3KooWJPbNGRYfSJu9tQTrwMkHu6uMqC39K6qza8CzZAeaHPBw',
'/ip4/192.168.65.3/tcp/4001/p2p/12D3KooWJPbNGRYfSJu9tQTrwMkHu6uMqC39K6qza8CzZAeaHPBw',
'/ip4/192.168.65.3/udp/4001/quic/p2p/12D3KooWJPbNGRYfSJu9tQTrwMkHu6uMqC39K6qza8CzZAeaHPBw',
'/ip4/201.190.254.216/udp/55467/quic/p2p/12D3KooWJPbNGRYfSJu9tQTrwMkHu6uMqC39K6qza8CzZAeaHPBw',
'/ip6/::1/tcp/4001/p2p/12D3KooWJPbNGRYfSJu9tQTrwMkHu6uMqC39K6qza8CzZAeaHPBw',
'/ip6/::1/udp/4001/quic/p2p/12D3KooWJPbNGRYfSJu9tQTrwMkHu6uMqC39K6qza8CzZAeaHPBw'
],
agentVersion: 'go-ipfs/0.7.0/',
protocolVersion: 'ipfs/0.1.0'
}

3. Connect with other node.

ipfs connect 12D3KooWKkvP2Si6nUQSmkNKELTe1TZfoa5t7yesM5u45QpFtvfT

OUTPUT

Note: Look for the "successfully " line.

[05-12 14:16:59] info: Successfully connected to /ip4/165.227.144.202/tcp/4001/ipfs/QmSRg4CQN4aSTKDahNSjwE2BnMRjZkthS5mdmcnau85FM5.
...

Last updated