IPFS connection for distributed file sharing

Register your node in IPFS routing

ipfs registry

Output

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

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’
}

Connect with other node

ipfs connect 12D3KooWKkvP2Si6nUQSmkNKELTe1TZfoa5t7yesM5u45QpFtvfT

(look for the successfully line)

Output

[05-12 14:16:59] info: Successfully connected to /ip4/165.227.144.202/tcp/4001/ipfs/QmSRg4CQN4aSTKDahNSjwE2BnMRjZkthS5mdmcnau85FM5.
[05-12 14:17:01] warn: Unable to connect to /ip4/173.232.146.200/tcp/4001/p2p/QmTgM2PzYUKWBeRTqWqv7bmr2D3HUUY9qpD7cxATBw4RQV. Error: connect QmTgM2PzYUKWBeRTqWqv7bmr2D3HUUY9qpD7cxATBw4RQV failure: failed to dial QmTgM2PzYUKWBeRTqWqv7bmr2D3HUUY9qpD7cxATBw4RQV: all dials failed
[/ip4/173.232.146.200/tcp/4001] dial tcp4 173.232.146.200:4001: i/o timeout
[05-12 14:17:01] warn: Unable to connect to /ip4/192.168.1.210/tcp/4001/p2p/12D3KooWNveEBgFsNsBMBSXPYnvVu73yqvytrLh7tztrusuqT1zE. Error: connect 12D3KooWNveEBgFsNsBMBSXPYnvVu73yqvytrLh7tztrusuqT1zE failure: failed to dial 12D3KooWNveEBgFsNsBMBSXPYnvVu73yqvytrLh7tztrusuqT1zE: all dials failed
[/ip4/192.168.1.210/tcp/4001] dial tcp4 0.0.0.0:4001->192.168.1.210:4001: i/o timeout
[05-12 14:17:01] warn: Unable to connect to /ip4/23.254.227.151/tcp/4001/ipfs/QmTfrtbUYnDSc9aSzCaV9uM8dxPjB31wwcvaLUCKejXvSZ. Error: connect QmTfrtbUYnDSc9aSzCaV9uM8dxPjB31wwcvaLUCKejXvSZ failure: failed to dial QmTfrtbUYnDSc9aSzCaV9uM8dxPjB31wwcvaLUCKejXvSZ: all dials failed