Hello! I had uploaded a file using js-ipfs and the I have a trouble with getting this file?
I used something like that node.files.add(fileToAdd, cb...)
Then got following output:
PFS Version: 0.23.0
Swarm listening on /ip4/127.0.0.1/tcp/4003/ws/ipfs/Qmd7K8fTVyQDnzJKPNNEiRALmt2zgcKSvWaGvZG1Xf3E2R
Swarm listening on /ip4/127.0.0.1/tcp/4002/ipfs/Qmd7K8fTVyQDnzJKPNNEiRALmt2zgcKSvWaGvZG1Xf3E2R
Swarm listening on /ip4/192.168.1.129/tcp/4002/ipfs/Qmd7K8fTVyQDnzJKPNNEiRALmt2zgcKSvWaGvZG1Xf3E2R
Swarm listening on /ip4/10.8.0.94/tcp/4002/ipfs/Qmd7K8fTVyQDnzJKPNNEiRALmt2zgcKSvWaGvZG1Xf3E2R
Node is now ready and online
Added file:
{ path: 'hello.txt',
hash: 'QmXPGDVpD5AsPx6F5aZrv5EQK2zt5CnMg1GzDLN9Z9mvvk',
size: 12 }
And now question is how I can get this file? I tried to make get request to ipfs.io/ipfs/{hash_here_QmXPGDV....}
And second question what are all of those links:
"Swarm listening on /ip4/..." ?
The text was updated successfully, but these errors were encountered:
Yes, that is correct, however information will take some time to propagate to ipfs.io, that can be 30 seconds to 5 mins depending on how you are connected.
Those Swarm is what ip's you are listening on, you can see you are listening both on /ws/ which is websockets, ipfs which is standard, both on you localhost 127.0.0.1, then 192.168.1.129 which is your local lan ip and then the last would be another public or private ip ipfs will respond on.
@kevinsimper@diasdavid So, to request a uploaded file, I just need make get request to this address in browser? 192.168.1.129:4002/{hash}
Or I should implement it first?
baimurzin commentedMar 26, 2017
•
edited
Hello! I had uploaded a file using js-ipfs and the I have a trouble with getting this file?
I used something like that
node.files.add(fileToAdd, cb...)Then got following output:
And now question is how I can get this file? I tried to make get request to ipfs.io/ipfs/{hash_here_QmXPGDV....}
And second question what are all of those links:
"Swarm listening on /ip4/..." ?
The text was updated successfully, but these errors were encountered: