How to get file uploaded via ipfs?

From @baimurzin on Sun Mar 26 2017 16:20:51 GMT+0000 (UTC)

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/
Swarm listening on /ip4/
Swarm listening on /ip4/
Swarm listening on /ip4/

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{hash_here_QmXPGDV....}

And second question what are all of those links:
“Swarm listening on /ip4/…” ?

Copied from original issue:

From @kevinsimper on Mon Mar 27 2017 11:52:58 GMT+0000 (UTC)

Hi @baimurzin

Yes, that is correct, however information will take some time to propagate to, 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, then which is your local lan ip and then the last would be another public or private ip ipfs will respond on.

From @diasdavid on Wed Mar 29 2017 03:53:03 GMT+0000 (UTC)

@kevinsimper did you run that in the browser or in Node.js? Can you do a node.swarm.peers and see what comes out?

From @baimurzin on Wed Mar 29 2017 16:53:14 GMT+0000 (UTC)

@kevinsimper @diasdavid So, to request a uploaded file, I just need make get request to this address in browser?{hash}
Or I should implement it first?